Detect OpenVZ 6
This commit is contained in:
parent
8b0b1a086b
commit
4b664b7e47
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,12 @@ if [[ "$EUID" -ne 0 ]]; then
|
|||
exit
|
||||
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
|
||||
# $os_version variables aren't always in use, but are kept here for convenience
|
||||
if grep -qs "ubuntu" /etc/os-release; then
|
||||
|
|
Loading…
Add table
Reference in a new issue