From b5f0dcc47413a166c427496d6ab2f51f04b461fa Mon Sep 17 00:00:00 2001 From: Junaid Maqsood Date: Fri, 17 Jul 2020 18:56:26 +0500 Subject: [PATCH] Added Support for CloudLinux. Where centos-release is unavailable. --- openvpn-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index 1a580d3..ecf27e1 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -34,6 +34,10 @@ elif [[ -e /etc/centos-release ]]; then os="centos" os_version=$(grep -oE '[0-9]+' /etc/centos-release | head -1) group_name="nobody" +elif [[ -e /etc/redhat-release ]]; then + os="centos" + os_version=$(grep -oE '[0-9]+' /etc/redhat-release | head -1) + group_name="nobody" elif [[ -e /etc/fedora-release ]]; then os="fedora" os_version=$(grep -oE '[0-9]+' /etc/fedora-release | head -1)