From 53c9a34b4b94e61aca2ba9cfbc94afbf24077c45 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Thu, 15 Jun 2023 00:11:56 -0500 Subject: [PATCH] Update OS check --- openvpn-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index af7409e..cf0c6c1 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -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)