Update Alpine Linux versions
- Add Alpine Linux 3.18 and remove 3.16.
This commit is contained in:
parent
a794200306
commit
16f5a1d81f
@ -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
|
||||
}
|
||||
|
@ -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')
|
||||
|
@ -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')
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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')
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user