1
0
mirror of synced 2025-03-22 07:53:56 +03:00

Update OS support

- Add Alpine Linux 3.21 and remove 3.19.
This commit is contained in:
hwdsl2 2025-03-05 23:23:55 -06:00
parent d7c20b818f
commit 1d2588f40b
5 changed files with 16 additions and 16 deletions

View File

@ -8,7 +8,7 @@
# The latest version of this script is available at:
# https://github.com/hwdsl2/setup-ipsec-vpn
#
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
# Copyright (C) 2020-2025 Lin Song <linsongui@gmail.com>
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
@ -100,8 +100,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.19" ] && [ "$os_ver" != "3.20" ]; then
exiterr "This script only supports Alpine Linux 3.19/3.20."
if [ "$os_ver" != "3.20" ] && [ "$os_ver" != "3.21" ]; then
exiterr "This script only supports Alpine Linux 3.20/3.21."
fi
else
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
@ -177,7 +177,7 @@ confirm_or_abort() {
show_header() {
cat <<'EOF'
IKEv2 Script Copyright (c) 2020-2024 Lin Song 27 Dec 2024
IKEv2 Script Copyright (c) 2020-2025 Lin Song 05 Mar 2025
EOF
}

View File

@ -6,7 +6,7 @@
# The latest version of this script is available at:
# https://github.com/hwdsl2/setup-ipsec-vpn
#
# Copyright (C) 2021-2024 Lin Song <linsongui@gmail.com>
# Copyright (C) 2021-2025 Lin Song <linsongui@gmail.com>
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
@ -91,8 +91,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.19" ] && [ "$os_ver" != "3.20" ]; then
exiterr "This script only supports Alpine Linux 3.19/3.20."
if [ "$os_ver" != "3.20" ] && [ "$os_ver" != "3.21" ]; then
exiterr "This script only supports Alpine Linux 3.20/3.21."
fi
else
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')

View File

@ -5,7 +5,7 @@
# The latest version of this script is available at:
# https://github.com/hwdsl2/setup-ipsec-vpn
#
# Copyright (C) 2021-2024 Lin Song <linsongui@gmail.com>
# Copyright (C) 2021-2025 Lin Song <linsongui@gmail.com>
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
@ -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.19" ] && [ "$os_ver" != "3.20" ]; then
exiterr "This script only supports Alpine Linux 3.19/3.20."
if [ "$os_ver" != "3.20" ] && [ "$os_ver" != "3.21" ]; then
exiterr "This script only supports Alpine Linux 3.20/3.21."
fi
}

View File

@ -8,7 +8,7 @@
# The latest version of this script is available at:
# https://github.com/hwdsl2/setup-ipsec-vpn
#
# Copyright (C) 2021-2024 Lin Song <linsongui@gmail.com>
# Copyright (C) 2021-2025 Lin Song <linsongui@gmail.com>
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
@ -123,8 +123,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.19" ] && [ "$os_ver" != "3.20" ]; then
exiterr "This script only supports Alpine Linux 3.19/3.20."
if [ "$os_ver" != "3.20" ] && [ "$os_ver" != "3.21" ]; then
exiterr "This script only supports Alpine Linux 3.20/3.21."
fi
else
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')

View File

@ -7,7 +7,7 @@
# The latest version of this script is available at:
# https://github.com/hwdsl2/setup-ipsec-vpn
#
# Copyright (C) 2021-2024 Lin Song <linsongui@gmail.com>
# Copyright (C) 2021-2025 Lin Song <linsongui@gmail.com>
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
@ -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.19" ] && [ "$os_ver" != "3.20" ]; then
exiterr "This script only supports Alpine Linux 3.19/3.20."
if [ "$os_ver" != "3.20" ] && [ "$os_ver" != "3.21" ]; then
exiterr "This script only supports Alpine Linux 3.20/3.21."
fi
}