Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2019-05-11 18:57:04 +0300
committernachoparker <nacho@ownyourbits.com>2019-05-11 20:13:52 +0300
commit758908128a0837304f54e58846b3e3ae4bb29cb0 (patch)
tree3268124f1893dc9a7e4b1b47ead416aae7426d67
parent1be5ddda1d75e5de95e52c0b51d8ad61beff25ae (diff)
fix logrotate filesv1.12.2
-rw-r--r--ncp.sh1
-rwxr-xr-xupdate.sh3
2 files changed, 4 insertions, 0 deletions
diff --git a/ncp.sh b/ncp.sh
index 7aacc190..176e0045 100644
--- a/ncp.sh
+++ b/ncp.sh
@@ -225,6 +225,7 @@ EOF
compress
}
EOF
+ chmod 0444 /etc/logrotate.d/ncp
# ONLY FOR IMAGE BUILDS
if [[ -f /.ncp-image ]]; then
diff --git a/update.sh b/update.sh
index fdc012ce..d699dbff 100755
--- a/update.sh
+++ b/update.sh
@@ -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 )"