fix logrotate files

This commit is contained in:
nachoparker 2019-05-11 09:57:04 -06:00
parent 1be5ddda1d
commit 758908128a
2 changed files with 4 additions and 0 deletions

1
ncp.sh
View File

@ -225,6 +225,7 @@ EOF
compress
}
EOF
chmod 0444 /etc/logrotate.d/ncp
# ONLY FOR IMAGE BUILDS
if [[ -f /.ncp-image ]]; then

View File

@ -228,6 +228,9 @@ EOF
chmod 700 /home/www/ncp-backup-launcher.sh
sed -i 's|www-data ALL = NOPASSWD: .*|www-data ALL = NOPASSWD: /home/www/ncp-launcher.sh , /home/www/ncp-backup-launcher.sh, /sbin/halt, /sbin/reboot|' /etc/sudoers
# fix logrotate files
chmod 0444 /etc/logrotate.d/*
# remove redundant opcache configuration. Leave until update bug is fixed -> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815968
# Bug #416 reappeared after we moved to php7.2 and debian buster packages. (keep last)
[[ "$( ls -l /etc/php/7.2/fpm/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.2/fpm/conf.d/*-opcache.ini | tail -1 )"