@cryptotaxi247 / netdata-1 / commits / 1569de801

when installing as normal user, respect the group for the web files

Costa Tsaousis (ktsaou) committed Jan 20, 2018 at 18:55 UTC 1569de8019ab15f4e5db845072d7a760b9f4ce63
1 file changed +2 -1
netdata-installer.sh
+2 -1
@@ -687,7 +687,8 @@ fi
687
688 # the owners of the web files
689 NETDATA_WEB_USER="$( config_option "web" "web files owner" "${NETDATA_USER}" )"
690 -NETDATA_WEB_GROUP="$( config_option "web" "web files group" "${NETDATA_WEB_USER}" )"
690 +[ "${UID}" = "0" -a "${NETDATA_USER}" != "${NETDATA_WEB_USER}" ] && NETDATA_GROUP="${NETDATA_WEB_USER}"
691 +NETDATA_WEB_GROUP="$( config_option "web" "web files group" "${NETDATA_GROUP}" )"
692
693 # port
694 defport=19999