mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-01-08 15:50:09 +01:00
specify al2023.6
This commit is contained in:
parent
b5b85f97cf
commit
207c6c9fc2
4
openvpn-install.sh
Executable file → Normal file
4
openvpn-install.sh
Executable file → Normal file
@ -77,12 +77,12 @@ function checkOS() {
|
|||||||
if [[ $ID == "amzn" ]]; then
|
if [[ $ID == "amzn" ]]; then
|
||||||
if [[ $VERSION_ID == "2" ]]; then
|
if [[ $VERSION_ID == "2" ]]; then
|
||||||
OS="amzn"
|
OS="amzn"
|
||||||
elif [[ $VERSION_ID == "2023" ]]; then
|
elif [ "$(echo $PRETTY_NAME | cut -c 1-19)" == "Amazon Linux 2023.6" ]; then
|
||||||
OS="amzn2023"
|
OS="amzn2023"
|
||||||
else
|
else
|
||||||
echo "⚠️ Your version of Amazon Linux is not supported."
|
echo "⚠️ Your version of Amazon Linux is not supported."
|
||||||
echo ""
|
echo ""
|
||||||
echo "The script only support Amazon Linux 2."
|
echo "The script only support Amazon Linux 2 or Amazon Linux 2023.6"
|
||||||
echo ""
|
echo ""
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user