]> arthur.barton.de Git - netdata.git/blobdiff - netdata-installer.sh
prevent /usr/libexec from being created without world-readable permissions; fixes...
[netdata.git] / netdata-installer.sh
index 68f0f348acb4a2cf2a6c498efaa405dbba569831..c16c30423cd81e57a97c49d164621852142d9e6c 100755 (executable)
@@ -13,7 +13,7 @@ then
 fi
 
 LC_ALL=C
-umask 007
+umask 002
 
 # Be nice on production environments
 renice 19 $$ >/dev/null 2>/dev/null
@@ -548,7 +548,7 @@ do
 done
 
 echo >&2 "Fixing permissions ..."
-run find ./system/ -type f -a \! -name \*.in -a \! -name Makefile\* -exec chmod 755 {} \;
+run find ./system/ -type f -a \! -name \*.in -a \! -name Makefile\* -a \! -name \*.conf  -exec chmod 755 {} \;
 
 NETDATA_ADDED_TO_DOCKER=0
 if [ ${UID} -eq 0 ]
@@ -697,8 +697,8 @@ do
     fi
 
     run chown --recursive "${NETDATA_USER}:${NETDATA_USER}" "${x}"
-    run find "${x}" -type f -exec chmod 0660 {} \;
-    run find "${x}" -type d -exec chmod 0770 {} \;
+    #run find "${x}" -type f -exec chmod 0660 {} \;
+    #run find "${x}" -type d -exec chmod 0770 {} \;
 done
 
 # --- plugins ----