summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2020-01-08 05:51:24 -0500
committerGitHub <noreply@github.com>2020-01-08 05:51:24 -0500
commit7b8c3863557576e7433d381fd05c95136a26e1fc (patch)
tree24ec12d32efb860305c777ea794d7e15cd344473
parent0a744f3e78a771b5159e207d6a314728f2dfdcfc (diff)
Fix a syntax error in the packaging functions. (#7686)
Plain `[]` does not support pattern matching, only `[[]]`.
-rw-r--r--packaging/installer/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/installer/functions.sh b/packaging/installer/functions.sh
index d0f188655a..f2fd269496 100644
--- a/packaging/installer/functions.sh
+++ b/packaging/installer/functions.sh
@@ -303,7 +303,7 @@ install_non_systemd_init() {
run rc-update add netdata default &&
return 0
- elif [ "${key}" =~ ^devuan* ] || [ "${key}" = "debian-7" ] || [ "${key}" = "ubuntu-12.04" ] || [ "${key}" = "ubuntu-14.04" ]; then
+ elif [[ "${key}" =~ ^devuan* ]] || [ "${key}" = "debian-7" ] || [ "${key}" = "ubuntu-12.04" ] || [ "${key}" = "ubuntu-14.04" ]; then
echo >&2 "Installing LSB init file..."
run cp system/netdata-lsb /etc/init.d/netdata &&
run chmod 755 /etc/init.d/netdata &&