summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorwoosley <woosley.xu@gmail.com>2017-06-22 16:06:04 +0000
committerwoosley <woosley.xu@gmail.com>2017-06-22 16:06:04 +0000
commita6db4ad269449044d70eace88d2f9b80dc943c9d (patch)
tree190287c4c59e4acac9f8075fa72c3275923fe980 /installer
parente2740624f7e4e6f8da7ff90d383faf6f353353aa (diff)
support RHEL in installer
Diffstat (limited to 'installer')
-rw-r--r--installer/functions.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/installer/functions.sh b/installer/functions.sh
index 8086f3aeb0..c847ba1cd1 100644
--- a/installer/functions.sh
+++ b/installer/functions.sh
@@ -411,9 +411,9 @@ install_non_systemd_init() {
source /etc/os-release || return 1
key="${ID}-${VERSION_ID}"
- elif [ -f /etc/centos-release ]
+ elif [ -f /etc/redhat-release ]
then
- key=$(</etc/centos-release)
+ key=$(</etc/redhat-release)
fi
if [ -d /etc/init.d -a ! -f /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).* ]]
+ elif [[ "${key}" =~ ^(amzn-201[567]|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 && \