mirror of
https://github.com/hwdsl2/openvpn-install.git
synced 2024-06-08 06:05:36 +02:00
Update OS check
This commit is contained in:
parent
96e081379a
commit
53c9a34b4b
|
@ -37,6 +37,8 @@ check_os() {
|
|||
os="centos"
|
||||
os_version="7"
|
||||
group_name="nobody"
|
||||
elif grep -qs "Amazon Linux release 2023" /etc/system-release; then
|
||||
exiterr "Amazon Linux 2023 is not supported."
|
||||
elif [[ -e /etc/fedora-release ]]; then
|
||||
os="fedora"
|
||||
os_version=$(grep -oE '[0-9]+' /etc/fedora-release | head -1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user