Update Alpine Linux versions
- Add Alpine Linux 3.17 and remove 3.15.
This commit is contained in:
parent
c8463092c7
commit
3f12b9583b
@ -96,8 +96,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.15" ] && [ "$os_ver" != "3.16" ]; then
|
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
|
||||||
exiterr "This script only supports Alpine Linux 3.15/3.16."
|
exiterr "This script only supports Alpine Linux 3.16/3.17."
|
||||||
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')
|
||||||
@ -157,7 +157,7 @@ confirm_or_abort() {
|
|||||||
show_header() {
|
show_header() {
|
||||||
cat <<'EOF'
|
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
|
EOF
|
||||||
}
|
}
|
||||||
|
@ -120,8 +120,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.15" ] && [ "$os_ver" != "3.16" ]; then
|
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
|
||||||
exiterr "This script only supports Alpine Linux 3.15/3.16."
|
exiterr "This script only supports Alpine Linux 3.16/3.17."
|
||||||
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')
|
||||||
|
@ -90,8 +90,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.15" ] && [ "$os_ver" != "3.16" ]; then
|
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
|
||||||
exiterr "This script only supports Alpine Linux 3.15/3.16."
|
exiterr "This script only supports Alpine Linux 3.16/3.17."
|
||||||
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')
|
||||||
|
@ -51,8 +51,8 @@ check_os() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
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.15" ] && [ "$os_ver" != "3.16" ]; then
|
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
|
||||||
exiterr "This script only supports Alpine Linux 3.15/3.16."
|
exiterr "This script only supports Alpine Linux 3.16/3.17."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,8 +120,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.15" ] && [ "$os_ver" != "3.16" ]; then
|
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
|
||||||
exiterr "This script only supports Alpine Linux 3.15/3.16."
|
exiterr "This script only supports Alpine Linux 3.16/3.17."
|
||||||
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')
|
||||||
|
@ -70,8 +70,8 @@ check_os() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
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.15" ] && [ "$os_ver" != "3.16" ]; then
|
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
|
||||||
exiterr "This script only supports Alpine Linux 3.15/3.16."
|
exiterr "This script only supports Alpine Linux 3.16/3.17."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user