From bba7ba1c823d679fb4db88e3edc413a87a1c9292 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Tue, 3 Dec 2024 16:47:38 -0700 Subject: [PATCH] Add bypass for ver check (dont use unless you know what you're doing) --- install.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index c0642c6..0558e4e 100755 --- a/install.sh +++ b/install.sh @@ -7,12 +7,15 @@ if [ "$(id -u)" != "0" ]; then fi # Check that we're running at least debian 12 or later -if [ "$(lsb_release -sc)" != "bookworm" ]; then - # This script must be run on Debian 12 Bookworm, you are running $(lsb_release -sc) - echo "This script must be run on Debian 12 Bookworm, you are running $(lsb_release -sc)" 1>&2 - exit 1 +if [ "$BYPASS_VERSION_CHECK" != "true" ]; then + if [ "$(lsb_release -sc)" != "bookworm" ]; then + # This script must be run on Debian 12 Bookworm, you are running $(lsb_release -sc) + echo "This script must be run on Debian 12 Bookworm, you are running $(lsb_release -sc)" 1>&2 + exit 1 + fi fi + # Install Flags # --edge - Install FreePBX Edge version