mirror of
https://github.com/hwdsl2/wireguard-install.git
synced 2024-09-22 00:00:55 +02:00
Detect OpenVZ 6
This commit is contained in:
parent
8b0b1a086b
commit
4b664b7e47
|
@ -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…
Reference in New Issue
Block a user