Skip to content

Commit 7589081

Browse files
committed
fix logrotate files
1 parent 1be5ddd commit 7589081

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ncp.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ EOF
225225
compress
226226
}
227227
EOF
228+
chmod 0444 /etc/logrotate.d/ncp
228229

229230
# ONLY FOR IMAGE BUILDS
230231
if [[ -f /.ncp-image ]]; then

update.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ EOF
228228
chmod 700 /home/www/ncp-backup-launcher.sh
229229
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
230230

231+
# fix logrotate files
232+
chmod 0444 /etc/logrotate.d/*
233+
231234
# remove redundant opcache configuration. Leave until update bug is fixed -> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815968
232235
# Bug #416 reappeared after we moved to php7.2 and debian buster packages. (keep last)
233236
[[ "$( 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 )"

0 commit comments

Comments
 (0)