fi
LC_ALL=C
-umask 007
+umask 002
# Be nice on production environments
renice 19 $$ >/dev/null 2>/dev/null
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 ]
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 ----
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