From 1d2588f40bce0084df291319c9c2e4c26e54d6ea Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Wed, 5 Mar 2025 23:23:55 -0600 Subject: [PATCH] Update OS support - Add Alpine Linux 3.21 and remove 3.19. --- extras/ikev2setup.sh | 8 ++++---- extras/vpnupgrade.sh | 6 +++--- extras/vpnupgrade_alpine.sh | 6 +++--- vpnsetup.sh | 6 +++--- vpnsetup_alpine.sh | 6 +++--- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/extras/ikev2setup.sh b/extras/ikev2setup.sh index 03c5b74..d231167 100755 --- a/extras/ikev2setup.sh +++ b/extras/ikev2setup.sh @@ -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 +# Copyright (C) 2020-2025 Lin Song # # 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 } diff --git a/extras/vpnupgrade.sh b/extras/vpnupgrade.sh index a52fbc2..7922ac2 100755 --- a/extras/vpnupgrade.sh +++ b/extras/vpnupgrade.sh @@ -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 +# Copyright (C) 2021-2025 Lin Song # # 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') diff --git a/extras/vpnupgrade_alpine.sh b/extras/vpnupgrade_alpine.sh index c6d88b9..ef1ed31 100755 --- a/extras/vpnupgrade_alpine.sh +++ b/extras/vpnupgrade_alpine.sh @@ -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 +# Copyright (C) 2021-2025 Lin Song # # 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 } diff --git a/vpnsetup.sh b/vpnsetup.sh index ccda9b0..029e322 100755 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -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 +# Copyright (C) 2021-2025 Lin Song # # 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') diff --git a/vpnsetup_alpine.sh b/vpnsetup_alpine.sh index edba7ec..5ef9327 100755 --- a/vpnsetup_alpine.sh +++ b/vpnsetup_alpine.sh @@ -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 +# Copyright (C) 2021-2025 Lin Song # # 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 }