summaryrefslogtreecommitdiffstats
path: root/installer/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'installer/functions.sh')
-rw-r--r--installer/functions.sh4
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 && \