mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-12-04 19:06:08 +03:00
Add quick support for OEL8
OEL8 behaves well (tested these changes), and requires only two minor changes.
This commit is contained in:
parent
c0a3562f64
commit
71bfa04962
@ -30,9 +30,9 @@ elif [[ -e /etc/debian_version ]]; then
|
|||||||
os="debian"
|
os="debian"
|
||||||
os_version=$(grep -oE '[0-9]+' /etc/debian_version | head -1)
|
os_version=$(grep -oE '[0-9]+' /etc/debian_version | head -1)
|
||||||
group_name="nogroup"
|
group_name="nogroup"
|
||||||
elif [[ -e /etc/almalinux-release || -e /etc/rocky-release || -e /etc/centos-release ]]; then
|
elif [[ -e /etc/almalinux-release || -e /etc/rocky-release || -e /etc/centos-release || -e /etc/oracle-release ]]; then
|
||||||
os="centos"
|
os="centos"
|
||||||
os_version=$(grep -shoE '[0-9]+' /etc/almalinux-release /etc/rocky-release /etc/centos-release | head -1)
|
os_version=$(grep -shoE '[0-9]+' /etc/almalinux-release /etc/rocky-release /etc/centos-release /etc/oracle-release | head -1)
|
||||||
group_name="nobody"
|
group_name="nobody"
|
||||||
elif [[ -e /etc/fedora-release ]]; then
|
elif [[ -e /etc/fedora-release ]]; then
|
||||||
os="fedora"
|
os="fedora"
|
||||||
|
Loading…
Reference in New Issue
Block a user