From 52a1562cb0cb01bdc1a360050facf24bdfa7973e Mon Sep 17 00:00:00 2001 From: necro-nemsis Date: Sat, 16 Apr 2022 06:50:06 -0400 Subject: [PATCH] update version test. --- installers/common.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index 7396b8e..b615afa 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -5,20 +5,20 @@ version=$(lsb_release -sc) #``sed 's/\..*//' /etc/debian_version` # Determine version, set default home location for lighttpd and # php package to install -if [ $version -eq bullseye ]; then +if [ $version -eq "bullseye" ]; then version_msg="11.0 (Bullseye)" # sudo apt update --allow-releaseinfo-change php_package="php7.4-cgi" -elif [ $version -eq buster ]; then +elif [ $version -eq "buster" ]; then version_msg="10.0 (Buster)" php_package="php7.3-cgi" -elif [ $version -eq stretch ]; then +elif [ $version -eq "stretch" ]; then version_msg="9.0 (Stretch)" php_package="php7.0-cgi" -elif [ $version -eq focal ]; then +elif [ $version -eq "focal" ]; then version_msg="20.02 (Focal)" php_package="php7.4-cgi" -elif [ $version -eq jammy ]; then +elif [ $version -eq "jammy" ]; then version_msg="22.04 (Jammy)" php_package="php8.1-cgi" else