mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
fix logrotate files
This commit is contained in:
parent
1be5ddda1d
commit
758908128a
1
ncp.sh
1
ncp.sh
@ -225,6 +225,7 @@ EOF
|
||||
compress
|
||||
}
|
||||
EOF
|
||||
chmod 0444 /etc/logrotate.d/ncp
|
||||
|
||||
# ONLY FOR IMAGE BUILDS
|
||||
if [[ -f /.ncp-image ]]; then
|
||||
|
||||
@ -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 )"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user