1
1
mirror of https://github.com/namibia/openvpn-install.git synced 2024-05-30 18:10:48 +00:00

Fix Fedora detection

This commit is contained in:
angristan 2020-01-27 18:08:06 +01:00
parent 69c4751236
commit 4b0f47b534

View File

@ -54,6 +54,9 @@ function checkOS () {
elif [[ -e /etc/system-release ]]; then elif [[ -e /etc/system-release ]]; then
# shellcheck disable=SC1091 # shellcheck disable=SC1091
source /etc/os-release source /etc/os-release
if [[ "$ID" = "fedora" ]]; then
OS="fedora"
fi
if [[ "$ID" = "centos" ]]; then if [[ "$ID" = "centos" ]]; then
OS="centos" OS="centos"
if [[ ! $VERSION_ID =~ (7|8) ]]; then if [[ ! $VERSION_ID =~ (7|8) ]]; then
@ -74,8 +77,6 @@ function checkOS () {
exit 1 exit 1
fi fi
fi fi
elif [[ -e /etc/fedora-release ]]; then
OS=fedora
elif [[ -e /etc/arch-release ]]; then elif [[ -e /etc/arch-release ]]; then
OS=arch OS=arch
else else