Detect OpenVZ 6

This commit is contained in:
Nyr 2020-05-20 12:04:26 +02:00
parent 8b0b1a086b
commit 4b664b7e47

View File

@ -19,6 +19,12 @@ if [[ "$EUID" -ne 0 ]]; then
exit exit
fi fi
# Detect OpenVZ 6
if [[ $(uname -r | cut -d "." -f 1) -eq 2 ]]; then
echo "The system is running an old kernel, which is incompatible with this installer"
exit
fi
# Detect OS # Detect OS
# $os_version variables aren't always in use, but are kept here for convenience # $os_version variables aren't always in use, but are kept here for convenience
if grep -qs "ubuntu" /etc/os-release; then if grep -qs "ubuntu" /etc/os-release; then