diff options
-rw-r--r-- | installer/functions.sh | 2 | ||||
-rwxr-xr-x | makeself/install-or-update.sh | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/installer/functions.sh b/installer/functions.sh index dac82119c8..2464683712 100644 --- a/installer/functions.sh +++ b/installer/functions.sh @@ -144,7 +144,7 @@ run_failed() { run_logfile="/dev/null" run() { - local user="${USER}" dir="$(basename "${PWD}")" info info_console + local user="${USER}" dir="${PWD}" info info_console if [ "${UID}" = "0" ] then diff --git a/makeself/install-or-update.sh b/makeself/install-or-update.sh index 1029ce376a..102aba03cd 100755 --- a/makeself/install-or-update.sh +++ b/makeself/install-or-update.sh @@ -118,7 +118,7 @@ progress "creating quick links" dir_should_be_link() { local p="${1}" t="${2}" d="${3}" old - old="$(pwd)" + old="${PWD}" cd "${p}" || return 0 if [ -e "${d}" ] @@ -151,9 +151,9 @@ dir_should_be_link . var/log/netdata netdata-logs # ----------------------------------------------------------------------------- progress "fix permissions" -chmod g+rx,o+rx /opt -chmod g+rx,o+rx /opt/netdata -chown -R ${NETDATA_USER}:${NETDATA_GROUP} /opt/netdata +run chmod g+rx,o+rx /opt +run chmod g+rx,o+rx /opt/netdata +run chown -R ${NETDATA_USER}:${NETDATA_GROUP} /opt/netdata # ----------------------------------------------------------------------------- |