diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-06-01 14:13:08 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-06-01 14:13:08 +0300 |
commit | fa7149c68b249b9ae93724016db02a912ac87c07 (patch) | |
tree | b703358799d0b8f612c41f38d5b2a7751dc6db7c /installer | |
parent | 77717713335be9882883066b4b7b8425c6d41320 (diff) |
allow netdata-updater.sh to run under non-bash; fixes #2267
Diffstat (limited to 'installer')
-rw-r--r-- | installer/functions.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/installer/functions.sh b/installer/functions.sh index e15fbe5e6b..8086f3aeb0 100644 --- a/installer/functions.sh +++ b/installer/functions.sh @@ -1,5 +1,9 @@ # no shebang necessary - this is a library to be sourced +# make sure we have a UID +[ -z "${UID}" ] && UID="$(id -u)" + + # ----------------------------------------------------------------------------- # checking the availability of commands |