Add weekly logrotation of FTL's log (#1509)

This commit is contained in:
DL6ER 2017-06-03 14:51:35 +02:00 committed by GitHub
parent 01e091fd17
commit 8ef64dbe74
2 changed files with 12 additions and 1 deletions

View file

@ -1080,7 +1080,7 @@ installLogrotate() {
# the local properties of the /var/log directory
logusergroup="$(stat -c '%U %G' /var/log)"
if [[ ! -z $logusergroup ]]; then
sed -i "s/# su #/su ${logusergroup}/" /etc/pihole/logrotate
sed -i "s/# su #/su ${logusergroup}/g;" /etc/pihole/logrotate
fi
echo " done!"
}