diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-04-01 21:06:56 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-04-01 21:06:56 +0300 |
commit | 10a624a7e059400253850b1efa714bdca5d346a0 (patch) | |
tree | 480ea88473348702110eed7799c54989f1892189 | |
parent | b9bd846814b337020508c8f4dbac12112bc25859 (diff) |
show full directory on relative commands
-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 # ----------------------------------------------------------------------------- |