summaryrefslogtreecommitdiffstats
path: root/kickstart-static64.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-11-07 12:22:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-11-07 12:22:44 +0000
commit1e6c93250172946eeb38e94a92a1fd12c9d3011e (patch)
tree8ca5e16dfc7ad6b3bf2738ca0a48408a950f8f7e /kickstart-static64.sh
parentUpdate watch file (diff)
downloadnetdata-1e6c93250172946eeb38e94a92a1fd12c9d3011e.tar.xz
netdata-1e6c93250172946eeb38e94a92a1fd12c9d3011e.zip
Merging upstream version 1.11.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'kickstart-static64.sh')
-rwxr-xr-xkickstart-static64.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/kickstart-static64.sh b/kickstart-static64.sh
index 1e1b089b8..1fe360345 100755
--- a/kickstart-static64.sh
+++ b/kickstart-static64.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env sh
+# SPDX-License-Identifier: GPL-3.0-or-later
+# shellcheck disable=SC1117,SC2016,SC2034,SC2039,SC2059,SC2086,SC2119,SC2120,SC2129,SC2162,SC2166,SC2181
umask 022
+# make sure UID is set
+# shellcheck disable=SC2155
+[ -z "${UID}" ] && export UID="$(id -u)"
+
# ---------------------------------------------------------------------------------------------------------------------
# library functions copied from installer/functions.sh
which_cmd() {
- which "${1}" 2>/dev/null || \
- command -v "${1}" 2>/dev/null
+ # shellcheck disable=SC2230
+ which "${1}" 2>/dev/null || command -v "${1}" 2>/dev/null
}
check_cmd() {
@@ -170,7 +176,7 @@ wget="$(which_cmd wget)"
progress "Checking the latest version of static build..."
-BASE='https://raw.githubusercontent.com/firehol/binary-packages/master'
+BASE='https://raw.githubusercontent.com/netdata/binary-packages/master'
LATEST=
if [ ! -z "${curl}" -a -x "${curl}" ]