@cryptotaxi247 / netdata-1 / commits / 10a624a7e

show full directory on relative commands

Costa Tsaousis (ktsaou) committed Apr 1, 2017 at 21:06 UTC 10a624a7e059400253850b1efa714bdca5d346a0
2 files changed +5 -5
installer/functions.sh
+1 -1
@@ -144,7 +144,7 @@ run_failed() {
144
145 run_logfile="/dev/null"
146 run() {
147 - local user="${USER}" dir="$(basename "${PWD}")" info info_console
147 + local user="${USER}" dir="${PWD}" info info_console
148
149 if [ "${UID}" = "0" ]
150 then
makeself/install-or-update.sh
+4 -4
@@ -118,7 +118,7 @@ progress "creating quick links"
118 dir_should_be_link() {
119 local p="${1}" t="${2}" d="${3}" old
120
121 - old="$(pwd)"
121 + old="${PWD}"
122 cd "${p}" || return 0
123
124 if [ -e "${d}" ]
@@ -151,9 +151,9 @@ dir_should_be_link . var/log/netdata netdata-logs
151 # -----------------------------------------------------------------------------
152 progress "fix permissions"
153
154 -chmod g+rx,o+rx /opt
155 -chmod g+rx,o+rx /opt/netdata
156 -chown -R ${NETDATA_USER}:${NETDATA_GROUP} /opt/netdata
154 +run chmod g+rx,o+rx /opt
155 +run chmod g+rx,o+rx /opt/netdata
156 +run chown -R ${NETDATA_USER}:${NETDATA_GROUP} /opt/netdata
157
158
159 # -----------------------------------------------------------------------------