diff --git a/installers/common.sh b/installers/common.sh index b615afa..53e72f1 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 = "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 = "buster" ]; then version_msg="10.0 (Buster)" php_package="php7.3-cgi" -elif [ $version -eq "stretch" ]; then +elif [ $version = "stretch" ]; then version_msg="9.0 (Stretch)" php_package="php7.0-cgi" -elif [ $version -eq "focal" ]; then +elif [ $version = "focal" ]; then version_msg="20.02 (Focal)" php_package="php7.4-cgi" -elif [ $version -eq "jammy" ]; then +elif [ $version = "jammy" ]; then version_msg="22.04 (Jammy)" php_package="php8.1-cgi" else