From de8bdef908b8ff2add9bf48605b223c984975621 Mon Sep 17 00:00:00 2001 From: billz Date: Mon, 24 Jun 2019 22:14:38 +0000 Subject: [PATCH] Updated to detect Raspbian 10.0 (Buster) --- installers/uninstall.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/installers/uninstall.sh b/installers/uninstall.sh index ecc88e7a..8326d23e 100755 --- a/installers/uninstall.sh +++ b/installers/uninstall.sh @@ -5,15 +5,14 @@ version=`sed 's/\..*//' /etc/debian_version` # Determine version and set default home location for lighttpd webroot_dir="/var/www/html" -if [ $version -eq 9 ]; then +if [ $version -eq 10 ]; then + version_msg="Raspian 10.0 (Buster)" + php_package="php7.0-cgi" +elif [ $version -eq 9 ]; then version_msg="Raspian 9.0 (Stretch)" - php_package="php7.0-cgi" -elif [ $version -eq 8 ]; then - version_msg="Raspian 8.0 (Jessie)" - webroot_dir="/var/www" - php_package="php5-cgi" + php_package="php7.0-cgi" else - version_msg="Raspian earlier than 8.0 (Wheezy)" + version_msg="Raspian 8.0 (Jessie) or earlier" webroot_dir="/var/www" php_package="php5-cgi" fi