From 163e7243da8662dce73d0a4b08d3c2afcc18ce2c Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 3 Dec 2024 12:32:54 -0800 Subject: [PATCH] limit installer to Debian 12 (bookworm) --- install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index a6a220d..31cf338 100755 --- a/install.sh +++ b/install.sh @@ -11,10 +11,11 @@ if [ "${EUID}" -ne 0 ]; then exit fi -# check for Ubuntu 22.04 (jammy) or Debian 12 (bookworm) -os_codename=`lsb_release -cs` -if [ $os_codename != jammy ] && [ $os_codename != bookworm ]; then - echo "This installer only runs on Ubuntu 22.04 (jammy) or Debian 12 (Bookworm), bailing out." +# check for Debian 12 (bookworm) +os_id=`lsb_release -is` +os_release=`lsb_release -rs` +if [ $os_id != Debian ] || [ $os_release != 12 ]; then + echo "This installer only runs on Debian 12 (Bookworm), bailing out." exit 1 fi