diff --git a/vpnupgrade_Libreswan.sh b/vpnupgrade_Libreswan.sh index 30a2976..426185a 100644 --- a/vpnupgrade_Libreswan.sh +++ b/vpnupgrade_Libreswan.sh @@ -18,6 +18,11 @@ if [ "$(lsb_release -si 2>/dev/null)" != "Ubuntu" ] && [ "$(lsb_release -si 2>/d exit 1 fi +if [ -f "/proc/user_beancounters" ]; then + echo "This script does NOT support OpenVZ VPS." + exit 1 +fi + if [ "$(id -u)" != 0 ]; then echo "Sorry, you need to run this script as root." exit 1 diff --git a/vpnupgrade_Libreswan_centos.sh b/vpnupgrade_Libreswan_centos.sh index d31fe21..d31503a 100644 --- a/vpnupgrade_Libreswan_centos.sh +++ b/vpnupgrade_Libreswan_centos.sh @@ -28,6 +28,11 @@ if [ "$(uname -m)" != "x86_64" ]; then exit 1 fi +if [ -f "/proc/user_beancounters" ]; then + echo "This script does NOT support OpenVZ VPS." + exit 1 +fi + if [ "$(id -u)" != 0 ]; then echo "Sorry, you need to run this script as root." exit 1