Mercurial > repos > other > Puppet
view common/0logwatch @ 242:7d8e664ebcc9 puppet-3.6
Change owner/group on Nextcloud for easy upgrade
We now prevent Apache writing to files using SELinux, so it is
secure during normal operation but can be upgraded through
the web app by disabling SELinux
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 20 Dec 2019 15:17:43 +0000 |
parents | 956e484adc12 |
children |
line wrap: on
line source
#!/bin/bash DailyReport=`grep -e "^[[:space:]]*DailyReport[[:space:]]*=[[:space:]]*" /usr/share/logwatch/default.conf/logwatch.conf | head -n1 | sed -e "s|^\s*DailyReport\s*=\s*||"` if [ "$DailyReport" != "No" ] && [ "$DailyReport" != "no" ] then logwatch fi