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:
parent
13f8b2e00c
commit
b5f0dcc474
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue