mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-05-09 10:18:22 +02:00
extend eligible al2023 version to 6+
This commit is contained in:
parent
0369f0fb82
commit
db2982a284
@ -77,12 +77,12 @@ function checkOS() {
|
||||
if [[ $ID == "amzn" ]]; then
|
||||
if [[ $VERSION_ID == "2" ]]; then
|
||||
OS="amzn"
|
||||
elif [[ "$(echo $PRETTY_NAME | cut -c 1-19)" == "Amazon Linux 2023.6" ]]; then
|
||||
elif [[ "$(echo $PRETTY_NAME | cut -c 1-18)" == "Amazon Linux 2023." ]] && [[ "$(echo $PRETTY_NAME | cut -c 19)" -ge 6 ]]; then
|
||||
OS="amzn2023"
|
||||
else
|
||||
echo "⚠️ Your version of Amazon Linux is not supported."
|
||||
echo ""
|
||||
echo "The script only support Amazon Linux 2 or Amazon Linux 2023.6"
|
||||
echo "The script only support Amazon Linux 2 or Amazon Linux 2023.6+"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user