diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-11-07 12:22:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-11-07 12:22:44 +0000 |
commit | 1e6c93250172946eeb38e94a92a1fd12c9d3011e (patch) | |
tree | 8ca5e16dfc7ad6b3bf2738ca0a48408a950f8f7e /kickstart.sh | |
parent | Update watch file (diff) | |
download | netdata-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.sh')
-rwxr-xr-x | kickstart.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/kickstart.sh b/kickstart.sh index cabe0146c..b493802f2 100755 --- a/kickstart.sh +++ b/kickstart.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +# SPDX-License-Identifier: GPL-3.0-or-later # # Run me with: # @@ -23,6 +24,8 @@ # # 3. install netdata +# shellcheck disable=SC1117,SC2016,SC2034,SC2039,SC2059,SC2086,SC2119,SC2120,SC2129,SC2162,SC2166,SC2181 + umask 022 [ -z "${UID}" ] && UID="$(id -u)" @@ -31,8 +34,8 @@ umask 022 # 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() { @@ -268,7 +271,7 @@ then if [ "${HAS_BASH4}" = "1" ] then tmp="$(mktemp /tmp/netdata-kickstart-XXXXXX)" - url="https://raw.githubusercontent.com/firehol/netdata-demo-site/master/install-required-packages.sh" + url="https://raw.githubusercontent.com/netdata/netdata-demo-site/master/install-required-packages.sh" progress "Downloading script to detect required packages..." if [ ! -z "${curl}" ] @@ -327,7 +330,7 @@ then if [ ! -d "${SOURCE_DST}/netdata.git" ] then progress "Downloading netdata source code..." - run ${sudo} ${git} clone https://github.com/firehol/netdata.git "${SOURCE_DST}/netdata.git" || fatal "Cannot download netdata source" + run ${sudo} ${git} clone https://github.com/netdata/netdata.git "${SOURCE_DST}/netdata.git" || fatal "Cannot download netdata source" cd "${SOURCE_DST}/netdata.git" || fatal "Cannot cd to netdata source tree" else progress "Updating netdata source code..." |