1
0
mirror of synced 2024-11-26 14:56:08 +03:00

Update Debian check

- Add check for Debian 10. See: https://git.io/vpndebian10
- Remove Debian 7 check
This commit is contained in:
hwdsl2 2020-11-17 00:50:35 -06:00
parent b57678b893
commit ccd072541b
2 changed files with 2 additions and 6 deletions

View File

@ -33,10 +33,6 @@ 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)" = "7" ]; then
exiterr "Debian 7 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,8 +60,8 @@ 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)" = "7" ]; then if [ "$(sed 's/\..*//' /etc/debian_version)" = "10" ] && [ ! -e /dev/ppp ]; then
exiterr "Debian 7 is not supported." exiterr "/dev/ppp is missing. Debian 10 users, see: https://git.io/vpndebian10"
fi fi
if [ -f /proc/user_beancounters ]; then if [ -f /proc/user_beancounters ]; then