diff options
author | Ilya <ilyamaschenko@gmail.com> | 2017-01-15 17:08:17 +0900 |
---|---|---|
committer | Ilya <ilyamaschenko@gmail.com> | 2017-01-15 17:08:17 +0900 |
commit | c5a23502910548f1a6ff571ec8ac6fa1eace309d (patch) | |
tree | 92d7a80dcc1c05d28feb37528f1ee7b693407332 /netdata-installer.sh | |
parent | 19e73445134cfac10cea78c14befa26a71ce6f20 (diff) |
varnish plugin: netdata-installer.sh update (add netdata to varnish group if exist)
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 95732e9a35..ff8def5782 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -692,12 +692,14 @@ run find ./system/ -type f -a \! -name \*.in -a \! -name Makefile\* -a \! -name NETDATA_ADDED_TO_DOCKER=0 NETDATA_ADDED_TO_NGINX=0 +NETDATA_ADDED_TO_VARNISH=0 if [ ${UID} -eq 0 ] then portable_add_group netdata portable_add_user netdata portable_add_user_to_group docker netdata && NETDATA_ADDED_TO_DOCKER=1 portable_add_user_to_group nginx netdata && NETDATA_ADDED_TO_NGINX=1 + portable_add_user_to_group varnish netdata && NETDATA_ADDED_TO_VARNISH=1 if [ -d /etc/logrotate.d -a ! -f /etc/logrotate.d/netdata ] then @@ -1343,6 +1345,15 @@ if [ $? -eq 0 -a "${NETDATA_ADDED_TO_NGINX}" = "1" ] echo " gpasswd -d netdata nginx" fi +getent group varnish > /dev/null +if [ $? -eq 0 -a "${NETDATA_ADDED_TO_VARNISH}" = "1" ] + then + echo + echo "You may also want to remove the netdata user from the varnish group" + echo "by running:" + echo " gpasswd -d netdata varnish" +fi + UNINSTALL chmod 750 netdata-uninstaller.sh |