From 2e625eb58e959e4e5d3eb9166c6fd587909c8931 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Tue, 11 Jun 2024 21:17:51 +0200 Subject: [PATCH] Fix debian variables --- scripts/_common.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 0e7a776..b782cb1 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,9 +6,12 @@ guacamole_version="1.5.4" -if [ "$ynh_debian_version" == "bullseye" ] ; then + +debian_maj_version=$(sed 's/\..*//' /etc/debian_version) + +if [ "$debian_maj_version" -eq 11 ] ; then tomcat_version="tomcat9" -elif [ "$ynh_debian_version" == "bookworm" ] ; then +elif [ "$debian_maj_version" -eq 12 ] ; then tomcat_version="tomcat10" fi