diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-03-01 00:23:52 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-03-01 00:23:52 +0200 |
commit | c9aeb55675730000418262a691add94f235a40ec (patch) | |
tree | 5b016e42b238ec8178b2606e346c152e160c0a20 /netdata-installer.sh | |
parent | 8a48fb8650beed88863006c950a946ec690b08c8 (diff) |
set netdata user home directory; do not validate certs when sending alarms; attempt to detect ssl certs on static installations; fixes #3489
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index d98ca4a69e..703a9c4f1b 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -642,7 +642,9 @@ run find ./system/ -type f -a \! -name \*.in -a \! -name Makefile\* -a \! -name # ----------------------------------------------------------------------------- progress "Add user netdata to required user groups" -add_netdata_user_and_group || run_failed "The installer does not run as root." +homedir="${NETDATA_LIB_DIR}" +[ ! -z "${NETDATA_PREFIX}" ] && homedir="${NETDATA_PREFIX}" +add_netdata_user_and_group "${homedir}" || run_failed "The installer does not run as root." # ----------------------------------------------------------------------------- |