Update Debian check
- Add check for Debian 8 (not supported)
This commit is contained in:
parent
00f9d2ba86
commit
8a3f22ba65
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user