From 71bfa04962a9c8b33a3592ab3b4c78b62c913dff Mon Sep 17 00:00:00 2001 From: Etzion Bar-Noy Date: Mon, 13 Jun 2022 00:58:51 +0300 Subject: [PATCH] Add quick support for OEL8 OEL8 behaves well (tested these changes), and requires only two minor changes. --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index effb1f6..0da1e94 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -30,9 +30,9 @@ elif [[ -e /etc/debian_version ]]; then os="debian" os_version=$(grep -oE '[0-9]+' /etc/debian_version | head -1) 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_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" elif [[ -e /etc/fedora-release ]]; then os="fedora"