1
0
mirror of synced 2024-11-25 22:36:04 +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
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
exiterr "OpenVZ VPS is not supported."
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
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"
fi