Skip to content

Commit

Permalink
fix logrotate files
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed May 11, 2019
1 parent 1be5ddd commit 7589081
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ncp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ EOF
compress
}
EOF
chmod 0444 /etc/logrotate.d/ncp

# ONLY FOR IMAGE BUILDS
if [[ -f /.ncp-image ]]; then
Expand Down
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 )"
Expand Down

0 comments on commit 7589081

Please sign in to comment.