1
0
mirror of synced 2025-01-31 04:21:43 +03:00

Add check for unsupported OpenVZ VPS

This commit is contained in:
hwdsl2 2016-01-19 01:32:22 -06:00
parent 9609b0b7b5
commit be5e6557bc
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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