Add check for unsupported OpenVZ VPS
This commit is contained in:
parent
9609b0b7b5
commit
be5e6557bc
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user