summaryrefslogtreecommitdiffstats
path: root/kickstart-static64.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-11-07 12:19:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-11-07 12:20:17 +0000
commita64a253794ac64cb40befee54db53bde17dd0d49 (patch)
treec1024acc5f6e508814b944d99f112259bb28b1be /kickstart-static64.sh
parentNew upstream version 1.10.0+dfsg (diff)
downloadnetdata-a64a253794ac64cb40befee54db53bde17dd0d49.tar.xz
netdata-a64a253794ac64cb40befee54db53bde17dd0d49.zip
New upstream version 1.11.0+dfsgupstream/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}" ]