mirror of
https://github.com/hwdsl2/setup-ipsec-vpn.git
synced 2026-05-16 23:55:44 +03:00
Update OS support
- Add Alpine Linux 3.23 and remove 3.21
This commit is contained in:
@@ -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.21" ] && [ "$os_ver" != "3.22" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.21/3.22."
|
||||
if [ "$os_ver" != "3.22" ] && [ "$os_ver" != "3.23" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.22/3.23."
|
||||
fi
|
||||
else
|
||||
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
||||
|
||||
@@ -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.21" ] && [ "$os_ver" != "3.22" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.21/3.22."
|
||||
if [ "$os_ver" != "3.22" ] && [ "$os_ver" != "3.23" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.22/3.23."
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user