1
0
mirror of synced 2024-11-29 16:16:03 +03:00

Update IKEv2 script

- Add Alpine Linux 3.15
This commit is contained in:
hwdsl2 2021-12-29 18:48:47 -06:00
parent 3affe0c5db
commit bbdb9b13f9

View File

@ -82,8 +82,8 @@ EOF
esac esac
if [ "$os_type" = "alpine" ]; then if [ "$os_type" = "alpine" ]; then
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2) os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
if [ "$os_ver" != "3.14" ]; then if [ "$os_ver" != "3.14" ] && [ "$os_ver" != "3.15" ]; then
exiterr "This script only supports Alpine Linux 3.14." exiterr "This script only supports Alpine Linux 3.14/3.15."
fi fi
else else
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9') os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
@ -153,7 +153,7 @@ check_container() {
show_header() { show_header() {
cat <<'EOF' cat <<'EOF'
IKEv2 Script Copyright (c) 2020-2021 Lin Song 7 Nov 2021 IKEv2 Script Copyright (c) 2020-2021 Lin Song 29 Dec 2021
EOF EOF
} }