summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-06-01 14:13:08 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-06-01 14:13:08 +0300
commitfa7149c68b249b9ae93724016db02a912ac87c07 (patch)
treeb703358799d0b8f612c41f38d5b2a7751dc6db7c /installer
parent77717713335be9882883066b4b7b8425c6d41320 (diff)
allow netdata-updater.sh to run under non-bash; fixes #2267
Diffstat (limited to 'installer')
-rw-r--r--installer/functions.sh4
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