1
0
Fork 0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-04-05 05:33:30 +03:00

Added Support for CloudLinux. Where centos-release is unavailable.

This commit is contained in:
Junaid Maqsood 2020-07-17 18:56:26 +05:00 committed by GitHub
parent 13f8b2e00c
commit b5f0dcc474
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)