Update Alpine Linux versions

- Add Alpine Linux 3.17 and remove 3.15.
This commit is contained in:
hwdsl2 2023-02-11 23:08:37 -06:00
parent c8463092c7
commit 3f12b9583b
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.15" ] && [ "$os_ver" != "3.16" ]; then
exiterr "This script only supports Alpine Linux 3.15/3.16."
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
exiterr "This script only supports Alpine Linux 3.16/3.17."
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 4 Jan 2023
IKEv2 Script Copyright (c) 2020-2023 Lin Song 11 Feb 2023
EOF
}

View File

@ -120,8 +120,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.15" ] && [ "$os_ver" != "3.16" ]; then
exiterr "This script only supports Alpine Linux 3.15/3.16."
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
exiterr "This script only supports Alpine Linux 3.16/3.17."
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.15" ] && [ "$os_ver" != "3.16" ]; then
exiterr "This script only supports Alpine Linux 3.15/3.16."
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
exiterr "This script only supports Alpine Linux 3.16/3.17."
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.15" ] && [ "$os_ver" != "3.16" ]; then
exiterr "This script only supports Alpine Linux 3.15/3.16."
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
exiterr "This script only supports Alpine Linux 3.16/3.17."
fi
}

View File

@ -120,8 +120,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.15" ] && [ "$os_ver" != "3.16" ]; then
exiterr "This script only supports Alpine Linux 3.15/3.16."
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
exiterr "This script only supports Alpine Linux 3.16/3.17."
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.15" ] && [ "$os_ver" != "3.16" ]; then
exiterr "This script only supports Alpine Linux 3.15/3.16."
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
exiterr "This script only supports Alpine Linux 3.16/3.17."
fi
}