]> arthur.barton.de Git - netdata.git/blobdiff - netdata-installer.sh
Merge pull request #1385 from ktsaou/master
[netdata.git] / netdata-installer.sh
index c16c30423cd81e57a97c49d164621852142d9e6c..adb99e4c58c086cff6e2ec95cb88fedf8bc65013 100755 (executable)
@@ -548,7 +548,7 @@ do
 done
 
 echo >&2 "Fixing permissions ..."
-run find ./system/ -type f -a \! -name \*.in -a \! -name Makefile\* -a \! -name \*.conf  -exec chmod 755 {} \;
+run find ./system/ -type f -a \! -name \*.in -a \! -name Makefile\* -a \! -name \*.conf  -a \! -name \*.service -exec chmod 755 {} \;
 
 NETDATA_ADDED_TO_DOCKER=0
 if [ ${UID} -eq 0 ]
@@ -724,6 +724,12 @@ else
     run find "${NETDATA_PREFIX}/usr/libexec/netdata" -type d -exec chmod 0755 {} \;
 fi
 
+# --- fix #1292 bug ---
+
+[ -d "${NETDATA_PREFIX}/usr/libexec" ] && run chmod a+rX "${NETDATA_PREFIX}/usr/libexec"
+[ -d "${NETDATA_PREFIX}/usr/share/netdata" ] && run chmod a+rX "${NETDATA_PREFIX}/usr/share/netdata"
+
+
 # -----------------------------------------------------------------------------
 # check if we can re-start netdata