From 21ae039589f3d15ac73a19397cb55a5efa2a730c Mon Sep 17 00:00:00 2001 From: billz Date: Mon, 11 Nov 2019 09:17:35 +0000 Subject: [PATCH] Minor: update legacy version check --- installers/common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index a19ecf3c..e81e4eb3 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -11,14 +11,14 @@ version=`sed 's/\..*//' /etc/debian_version` # Determine Raspbian version, set default home location for lighttpd and # php package to install -if [ $version -eq 10 ]; then +if [ "$version" -eq "10" ]; then version_msg="Raspbian 10.0 (Buster)" php_package="php7.1-cgi" -elif [ $version -eq 9 ]; then +elif [ "$version" -eq "9" ]; then version_msg="Raspbian 9.0 (Stretch)" php_package="php7.0-cgi" -elif [ $version -eq 8 ]; then - version_msg="Raspbian 8.0 (Jessie)" +elif [ "$version" -eq "8" ]; then + version_msg="Raspbian 8.0 (Jessie)" php_package="php5-cgi" else version_msg="Raspbian earlier than 8.0 (Wheezy)"