From 8e60af5fc21ea9458f72caf594a777818a712f42 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 21 May 2023 22:21:31 -0500 Subject: [PATCH] Update OS check - Update OS check to detect Amazon Linux 2023, which is not currently supported for use with this project. --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 5c4f0d2..2f4b777 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -33,7 +33,7 @@ check_os() { os="centos" os_version=$(grep -shoE '[0-9]+' /etc/almalinux-release /etc/rocky-release /etc/centos-release | head -1) group_name="nobody" - elif grep -qs "Amazon Linux release 2" /etc/system-release; then + elif grep -qs "Amazon Linux release 2 " /etc/system-release; then os="centos" os_version="7" group_name="nobody" @@ -572,7 +572,7 @@ LimitNPROC=infinity" > /etc/systemd/system/openvpn-server@server.service.d/disab apt-get -yqq install openssl ca-certificates $firewall >/dev/null ) || exiterr2 elif [[ "$os" = "centos" ]]; then - if grep -qs "Amazon Linux release 2" /etc/system-release; then + if grep -qs "Amazon Linux release 2 " /etc/system-release; then ( set -x amazon-linux-extras install epel -y >/dev/null