@cryptotaxi247 / netdata-1 / commits / c22db80fb

netdata-updater.sh inherits the $PATH from netdata-installer.sh; fixes #1000

Costa Tsaousis (ktsaou) committed Sep 22, 2016 at 21:21 UTC c22db80fb5c1ec7475c993cb995dd1a08db28a3e
1 file changed +4 -1
netdata-installer.sh
+4 -1
@@ -26,7 +26,7 @@ printf "%q " "$0" "${@}" >>netdata-installer.log
26 printf "\n" >>netdata-installer.log
27
28 REINSTALL_PWD="${PWD}"
29 -REINSTALL_COMMAND="$(printf "CFLAGS=\"%s\" " "${CFLAGS}"; printf "%q " "$0" "${@}"; printf "\n")"
29 +REINSTALL_COMMAND="$(printf "%q " "$0" "${@}"; printf "\n")"
30
31 service="$(which service 2>/dev/null || command -v service 2>/dev/null)"
32 systemctl="$(which systemctl 2>/dev/null || command -v systemctl 2>/dev/null)"
@@ -1077,6 +1077,9 @@ echo >&2 "Uninstall script generated: ./netdata-uninstaller.sh"
1077 cat >netdata-updater.sh.new <<REINSTALL
1078 #!/usr/bin/env bash
1079
1080 +export PATH="\${PATH}:${PATH}"
1081 +export CFLAGS="${CFLAGS}"
1082 +
1083 LAST_UID="${UID}"
1084 if [ "\${LAST_UID}" != "\${UID}" ]
1085 then