From bf0edf5627ade1c2c2b24bb36b5cba11b0671f6a Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 14 Apr 2024 14:21:03 -0500 Subject: [PATCH] Update OS support - Cleanup. Ref: 1442e9f. --- extras/vpnupgrade.sh | 9 +++++++-- vpnsetup.sh | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/extras/vpnupgrade.sh b/extras/vpnupgrade.sh index ddaff43..f3e614f 100755 --- a/extras/vpnupgrade.sh +++ b/extras/vpnupgrade.sh @@ -95,8 +95,13 @@ EOF fi else os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9') - if [ "$os_ver" = 8 ] || [ "$os_ver" = "jessiesid" ]; then - exiterr "Debian 8 or Ubuntu < 16.04 is not supported." + if [ "$os_ver" = 8 ] || [ "$os_ver" = 9 ] || [ "$os_ver" = "jessiesid" ] \ + || [ "$os_ver" = "bustersid" ]; then +cat 1>&2 <= 10 or Ubuntu >= 20.04. + This version of Ubuntu/Debian is too old and not supported. +EOF + exit 1 fi fi fi diff --git a/vpnsetup.sh b/vpnsetup.sh index e844191..f3ab5f5 100755 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -127,8 +127,13 @@ EOF fi else os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9') - if [ "$os_ver" = 8 ] || [ "$os_ver" = "jessiesid" ]; then - exiterr "Debian 8 or Ubuntu < 16.04 is not supported." + if [ "$os_ver" = 8 ] || [ "$os_ver" = 9 ] || [ "$os_ver" = "jessiesid" ] \ + || [ "$os_ver" = "bustersid" ]; then +cat 1>&2 <= 10 or Ubuntu >= 20.04. + This version of Ubuntu/Debian is too old and not supported. +EOF + exit 1 fi fi fi