1
0
mirror of synced 2024-11-21 20:46:10 +03:00

Update Alpine Linux versions

- Add Alpine Linux 3.18 and remove 3.16.
This commit is contained in:
hwdsl2 2023-08-10 23:33:06 -05:00
parent a794200306
commit 16f5a1d81f
6 changed files with 13 additions and 13 deletions

View File

@ -96,8 +96,8 @@ EOF
esac
if [ "$os_type" = "alpine" ]; then
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
exiterr "This script only supports Alpine Linux 3.16/3.17."
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
exiterr "This script only supports Alpine Linux 3.17/3.18."
fi
else
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
@ -157,7 +157,7 @@ confirm_or_abort() {
show_header() {
cat <<'EOF'
IKEv2 Script Copyright (c) 2020-2023 Lin Song 11 Feb 2023
IKEv2 Script Copyright (c) 2020-2023 Lin Song 11 Aug 2023
EOF
}

View File

@ -122,8 +122,8 @@ EOF
esac
if [ "$os_type" = "alpine" ]; then
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
exiterr "This script only supports Alpine Linux 3.16/3.17."
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
exiterr "This script only supports Alpine Linux 3.17/3.18."
fi
else
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')

View File

@ -90,8 +90,8 @@ EOF
esac
if [ "$os_type" = "alpine" ]; then
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
exiterr "This script only supports Alpine Linux 3.16/3.17."
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
exiterr "This script only supports Alpine Linux 3.17/3.18."
fi
else
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')

View File

@ -51,8 +51,8 @@ check_os() {
;;
esac
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
exiterr "This script only supports Alpine Linux 3.16/3.17."
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
exiterr "This script only supports Alpine Linux 3.17/3.18."
fi
}

View File

@ -122,8 +122,8 @@ EOF
esac
if [ "$os_type" = "alpine" ]; then
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
exiterr "This script only supports Alpine Linux 3.16/3.17."
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
exiterr "This script only supports Alpine Linux 3.17/3.18."
fi
else
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')

View File

@ -70,8 +70,8 @@ check_os() {
;;
esac
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
exiterr "This script only supports Alpine Linux 3.16/3.17."
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
exiterr "This script only supports Alpine Linux 3.17/3.18."
fi
}