diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-03-01 00:45:53 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-03-01 00:45:53 +0200 |
commit | a42120c3ce67ac5c40a98ae17a1736fd53fd1e96 (patch) | |
tree | 898b3bcfd0dbdcc60f65ee4f12359ca2132df009 /makeself | |
parent | c9aeb55675730000418262a691add94f235a40ec (diff) |
do not instruct the movement of the home directory
Diffstat (limited to 'makeself')
-rwxr-xr-x | makeself/install-or-update.sh | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/makeself/install-or-update.sh b/makeself/install-or-update.sh index f285c5d631..eed2bc3010 100755 --- a/makeself/install-or-update.sh +++ b/makeself/install-or-update.sh @@ -94,15 +94,6 @@ else run_failed "Failed to add netdata user and group" fi -[ ~netdata = / ] && cat <<USERMOD - -The netdata user has its home directory set to / -You may want to change it, using this command: - -# usermod -m -d /opt/netdata netdata - -USERMOD - # ----------------------------------------------------------------------------- progress "Check SSL certificates paths" @@ -111,10 +102,15 @@ if [ ! -f "/etc/ssl/certs/ca-certificates.crt" ] then if [ ! -f /opt/netdata/.curlrc ] then + cacert= + # CentOS - if [ -f "/etc/ssl/certs/ca-bundle.crt" ] + [ -f "/etc/ssl/certs/ca-bundle.crt" ] && cacert="/etc/ssl/certs/ca-bundle.crt" + + if [ ! -z "${cacert}" ] then - echo >/opt/netdata/.curlrc "cacert=/etc/ssl/certs/ca-bundle.crt" + echo "Creating /opt/netdata/.curlrc with cacert=${cacert}" + echo >/opt/netdata/.curlrc "cacert=${cacert}" else run_failed "Failed to find /etc/ssl/certs/ca-certificates.crt" fi |