Skip to content

Commit

Permalink
specify al2023.6
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeflei committed Nov 6, 2024
1 parent b5b85f9 commit 207c6c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvpn-install.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 207c6c9

Please sign in to comment.