@cryptotaxi247 / netdata-1 / commits / a6db4ad26

support RHEL in installer

woosley committed Jun 22, 2017 at 16:06 UTC a6db4ad269449044d70eace88d2f9b80dc943c9d
1 file changed +3 -3
installer/functions.sh
+3 -3
@@ -411,9 +411,9 @@ install_non_systemd_init() {
411 source /etc/os-release || return 1
412 key="${ID}-${VERSION_ID}"
413
414 - elif [ -f /etc/centos-release ]
414 + elif [ -f /etc/redhat-release ]
415 then
416 - key=$(</etc/centos-release)
416 + key=$(</etc/redhat-release)
417 fi
418
419 if [ -d /etc/init.d -a ! -f /etc/init.d/netdata ]
@@ -437,7 +437,7 @@ install_non_systemd_init() {
437 run update-rc.d netdata defaults && \
438 run update-rc.d netdata enable && \
439 return 0
440 - elif [[ "${key}" =~ ^(amzn-201[567]|CentOS release 6).* ]]
440 + elif [[ "${key}" =~ ^(amzn-201[567]|CentOS release 6|Red Hat Enterprise Linux Server release 6).* ]]
441 then
442 echo >&2 "Installing init.d file..."
443 run cp system/netdata-init-d /etc/init.d/netdata && \