specify al2023.6

This commit is contained in:
blakeflei 2024-11-06 17:53:07 -05:00
parent b5b85f97cf
commit 207c6c9fc2

4
openvpn-install.sh Executable file → Normal file
View File

@ -77,12 +77,12 @@ function checkOS() {
if [[ $ID == "amzn" ]]; then
if [[ $VERSION_ID == "2" ]]; then
OS="amzn"
elif [[ $VERSION_ID == "2023" ]]; then
elif [ "$(echo $PRETTY_NAME | cut -c 1-19)" == "Amazon Linux 2023.6" ]; then
OS="amzn2023"
else
echo "⚠️ Your version of Amazon Linux is not supported."
echo ""
echo "The script only support Amazon Linux 2."
echo "The script only support Amazon Linux 2 or Amazon Linux 2023.6"
echo ""
exit 1
fi