@cryptotaxi247 / netdata-1 / commits / a6801a010

fix logrotate file permissions; #1456

Costa Tsaousis (ktsaou) committed Dec 27, 2016 at 21:29 UTC a6801a010448d298f992dea11f5ddab6ede51be7
1 file changed +7 -1
netdata-installer.sh
+7 -1
@@ -657,7 +657,7 @@ portable_add_user_to_group() {
657 fi
658 }
659
660 -run find ./system/ -type f -a \! -name \*.in -a \! -name Makefile\* -a \! -name \*.conf -a \! -name \*.service -exec chmod 755 {} \;
660 +run find ./system/ -type f -a \! -name \*.in -a \! -name Makefile\* -a \! -name \*.conf -a \! -name \*.service -a \! -name \*.logrotate -exec chmod 755 {} \;
661
662 NETDATA_ADDED_TO_DOCKER=0
663 NETDATA_ADDED_TO_NGINX=0
@@ -673,6 +673,12 @@ if [ ${UID} -eq 0 ]
673 echo >&2 "Adding netdata logrotate configuration ..."
674 run cp system/netdata.logrotate /etc/logrotate.d/netdata
675 fi
676 +
677 + if [ -f /etc/logrotate.d/netdata ]
678 + then
679 + echo >&2 "Fixing netdata logrotate permissions ..."
680 + run chmod 644 /etc/logrotate.d/netdata
681 + fi
682 fi
683
684