1
0
mirror of synced 2024-11-22 21:16:02 +03:00

Update Debian check

- Add check for Debian 8 (not supported)
This commit is contained in:
hwdsl2 2020-12-04 23:39:35 -06:00
parent 00f9d2ba86
commit 8a3f22ba65
2 changed files with 10 additions and 1 deletions

View File

@ -33,6 +33,11 @@ if ! printf '%s' "$os_type" | head -n 1 | grep -qiF -e ubuntu -e debian -e raspb
exit 1 exit 1
fi fi
debian_ver=$(sed 's/\..*//' /etc/debian_version)
if [ "$debian_ver" = "8" ]; then
exiterr "Debian 8 is not supported."
fi
if [ -f /proc/user_beancounters ]; then if [ -f /proc/user_beancounters ]; then
exiterr "OpenVZ VPS is not supported." exiterr "OpenVZ VPS is not supported."
fi fi

View File

@ -60,7 +60,11 @@ if ! printf '%s' "$os_type" | head -n 1 | grep -qiF -e ubuntu -e debian -e raspb
exit 1 exit 1
fi fi
if [ "$(sed 's/\..*//' /etc/debian_version)" = "10" ] && [ ! -e /dev/ppp ]; then debian_ver=$(sed 's/\..*//' /etc/debian_version)
if [ "$debian_ver" = "8" ]; then
exiterr "Debian 8 is not supported."
fi
if [ "$debian_ver" = "10" ] && [ ! -e /dev/ppp ]; then
exiterr "/dev/ppp is missing. Debian 10 users, see: https://git.io/vpndebian10" exiterr "/dev/ppp is missing. Debian 10 users, see: https://git.io/vpndebian10"
fi fi