From ccd072541b63b374da5a5b1a4cc70c30049ac4d4 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Tue, 17 Nov 2020 00:50:35 -0600 Subject: [PATCH] Update Debian check - Add check for Debian 10. See: https://git.io/vpndebian10 - Remove Debian 7 check --- extras/vpnupgrade.sh | 4 ---- vpnsetup.sh | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/extras/vpnupgrade.sh b/extras/vpnupgrade.sh index 4f362d6..afe3c84 100644 --- a/extras/vpnupgrade.sh +++ b/extras/vpnupgrade.sh @@ -33,10 +33,6 @@ if ! printf '%s' "$os_type" | head -n 1 | grep -qiF -e ubuntu -e debian -e raspb exit 1 fi -if [ "$(sed 's/\..*//' /etc/debian_version)" = "7" ]; then - exiterr "Debian 7 is not supported." -fi - if [ -f /proc/user_beancounters ]; then exiterr "OpenVZ VPS is not supported." fi diff --git a/vpnsetup.sh b/vpnsetup.sh index f7afaf6..5fd103a 100755 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -60,8 +60,8 @@ if ! printf '%s' "$os_type" | head -n 1 | grep -qiF -e ubuntu -e debian -e raspb exit 1 fi -if [ "$(sed 's/\..*//' /etc/debian_version)" = "7" ]; then - exiterr "Debian 7 is not supported." +if [ "$(sed 's/\..*//' /etc/debian_version)" = "10" ] && [ ! -e /dev/ppp ]; then + exiterr "/dev/ppp is missing. Debian 10 users, see: https://git.io/vpndebian10" fi if [ -f /proc/user_beancounters ]; then