From 3500c7608634c9298de0770d7a2827d2d3f871e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Filiepk?= Date: Sun, 14 Mar 2021 15:48:13 +0100 Subject: [PATCH] Support for Oracle Linux 8. --- openvpn-install.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 2d57e64..f46abd2 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -65,14 +65,14 @@ function checkOS() { exit 1 fi fi - if [[ $ID == "oracle" ]]; then - OS="oracle" - if [[ ! $VERSION_ID =~ (8) ]]; then - echo "Your version of Oracle Linux is not supported." - echo "" - echo "The script only support Oracle Linux 8." - exit 1 - fi + if [[ $ID == "oracle" ]]; then + OS="oracle" + if [[ ! $VERSION_ID =~ (8) ]]; then + echo "Your version of Oracle Linux is not supported." + echo "" + echo "The script only support Oracle Linux 8." + exit 1 + fi fi if [[ $ID == "amzn" ]]; then OS="amzn" @@ -675,8 +675,8 @@ function installOpenVPN() { yum install -y epel-release yum install -y openvpn iptables openssl wget ca-certificates curl tar 'policycoreutils-python*' elif [[ $OS == 'oracle' ]]; then - yum install -y 'oracle-epel-release-*' - yum install -y openvpn iptables openssl wget ca-certificates curl tar 'policycoreutils-python*' + yum install -y 'oracle-epel-release-*' + yum install -y openvpn iptables openssl wget ca-certificates curl tar 'policycoreutils-python*' elif [[ $OS == 'amzn' ]]; then amazon-linux-extras install -y epel yum install -y openvpn iptables openssl wget ca-certificates curl