diff options
author | Lennart Weller <lhw@ring0.de> | 2017-09-17 22:17:33 +0000 |
---|---|---|
committer | Lennart Weller <lhw@ring0.de> | 2017-09-17 22:17:33 +0000 |
commit | 6aaf5ba7ed0980c14bdc554fc8839a2126455ed5 (patch) | |
tree | 6161925716661486e7f47c479668a9487b039d83 /installer | |
parent | New upstream version 1.7.0+dfsg (diff) | |
download | netdata-upstream/1.8.0+dfsg.tar.xz netdata-upstream/1.8.0+dfsg.zip |
New upstream version 1.8.0+dfsgupstream/1.8.0+dfsg
Diffstat (limited to '')
-rw-r--r-- | installer/functions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/installer/functions.sh b/installer/functions.sh index c847ba1c..cfc2d7ea 100644 --- a/installer/functions.sh +++ b/installer/functions.sh @@ -418,7 +418,7 @@ install_non_systemd_init() { if [ -d /etc/init.d -a ! -f /etc/init.d/netdata ] then - if [ "${key}" = "gentoo" ] + if [[ "${key}" =~ ^(gentoo|alpine).* ]] then echo >&2 "Installing OpenRC init file..." run cp system/netdata-openrc /etc/init.d/netdata && \ @@ -437,7 +437,7 @@ install_non_systemd_init() { run update-rc.d netdata defaults && \ run update-rc.d netdata enable && \ return 0 - elif [[ "${key}" =~ ^(amzn-201[567]|CentOS release 6|Red Hat Enterprise Linux Server release 6).* ]] + elif [[ "${key}" =~ ^(amzn-201[567]|ol|CentOS release 6|Red Hat Enterprise Linux Server release 6).* ]] then echo >&2 "Installing init.d file..." run cp system/netdata-init-d /etc/init.d/netdata && \ |