diff --git a/wireguard-install.sh b/wireguard-install.sh index dc635b9..9b54a8e 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -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