summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com>2019-04-03 15:00:53 +0200
committerGitHub <noreply@github.com>2019-04-03 15:00:53 +0200
commit6fe8c7d0e808449196d76eb93ebe80a11eec9ade (patch)
tree1a7d42be740cc8808f029fbfcf780f81365f0cad
parent44be4c71b8d78dc3afa56cdd93b7178ddf5955c6 (diff)
netdata/packaging: Fix non compatible function declaration (#5789)
1)remove function keyword 2)update README.md
-rw-r--r--packaging/installer/README.md4
-rw-r--r--packaging/installer/functions.sh2
-rwxr-xr-xpackaging/installer/kickstart-static64.sh2
-rwxr-xr-xpackaging/installer/kickstart.sh2
-rw-r--r--packaging/installer/netdata-updater.sh2
5 files changed, 6 insertions, 6 deletions
diff --git a/packaging/installer/README.md b/packaging/installer/README.md
index 6ce48c521b..77a1048e5f 100644
--- a/packaging/installer/README.md
+++ b/packaging/installer/README.md
@@ -42,7 +42,7 @@ bash <(curl -Ss https://my-netdata.io/kickstart.sh)
Verify the integrity of the script with this:
```bash
-[ "4e339c2e66192c122484476ef48b6843" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
+[ "15c688e7228ebee83ace1811273cd089" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
```
*It should print `OK, VALID` if the script is the one we ship.*
@@ -96,7 +96,7 @@ To install Netdata with a binary package on any Linux distro, any kernel version
Verify the integrity of the script with this:
```bash
-[ "9a8fec4af9aba11614381f9cd187a68b" = "$(curl -Ss https://my-netdata.io/kickstart-static64.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
+[ "97427a0fc5a52593b603c2ae887d4466" = "$(curl -Ss https://my-netdata.io/kickstart-static64.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
```
*It should print `OK, VALID` if the script is the one we ship.*
diff --git a/packaging/installer/functions.sh b/packaging/installer/functions.sh
index 0b3049967b..1e83ab8265 100644
--- a/packaging/installer/functions.sh
+++ b/packaging/installer/functions.sh
@@ -680,7 +680,7 @@ portable_add_user_to_group() {
}
-function safe_sha256sum() {
+safe_sha256sum() {
# Within the contexct of the installer, we only use -c option that is common between the two commands
# We will have to reconsider if we start non-common options
if command -v sha256sum >/dev/null 2>&1; then
diff --git a/packaging/installer/kickstart-static64.sh b/packaging/installer/kickstart-static64.sh
index 4c5162b2f8..6ef3a12322 100755
--- a/packaging/installer/kickstart-static64.sh
+++ b/packaging/installer/kickstart-static64.sh
@@ -111,7 +111,7 @@ set_tarball_urls() {
fi
}
-function safe_sha256sum() {
+safe_sha256sum() {
# Within the contexct of the installer, we only use -c option that is common between the two commands
# We will have to reconsider if we start non-common options
if command -v sha256sum >/dev/null 2>&1; then
diff --git a/packaging/installer/kickstart.sh b/packaging/installer/kickstart.sh
index 03d3a3b81a..a8057c19c6 100755
--- a/packaging/installer/kickstart.sh
+++ b/packaging/installer/kickstart.sh
@@ -204,7 +204,7 @@ dependencies() {
fi
}
-function safe_sha256sum() {
+safe_sha256sum() {
# Within the contexct of the installer, we only use -c option that is common between the two commands
# We will have to reconsider if we start non-common options
if command -v sha256sum >/dev/null 2>&1; then
diff --git a/packaging/installer/netdata-updater.sh b/packaging/installer/netdata-updater.sh
index 9857d3128d..56c8379530 100644
--- a/packaging/installer/netdata-updater.sh
+++ b/packaging/installer/netdata-updater.sh
@@ -20,7 +20,7 @@ error() {
echo >&3 "$(date) : ERROR: " "${@}"
}
-function safe_sha256sum() {
+safe_sha256sum() {
# Within the contexct of the installer, we only use -c option that is common between the two commands
# We will have to reconsider if we start non-common options
if command -v sha256sum >/dev/null 2>&1; then