From 65ae3b3e68b6563cb252d9440f5c385914c6c1a8 Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Thu, 7 Nov 2019 14:28:56 +0100 Subject: [PATCH] Fixed variables and fi statement --- installer.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/installer.sh b/installer.sh index 184c7be..3093891 100644 --- a/installer.sh +++ b/installer.sh @@ -50,12 +50,12 @@ fi # Addons # ##----------## -if [ $webserv = nginx ]; then +if [ $webserv = Nginx ]; then #NGINX Addon menu option=$(whiptail --nocancel --title "Which Nginx addons should be installed?" --checklist "Features" 11 110 5 "Memcached:" "Memcached is an open source, high-performance, distributed memory caching system." OFF "Redis Cache:" "Redis is an open source BSD licensed, in-memory data structure store." OFF 3>&1 1>&2 2>&3) fi -if [ $webserv = apache2 ]; then +if [ $webserv = Apache ]; then #Apache Addon menu option=$(whiptail --nocancel --title "Which Apache addons should be installed?" --checklist "Features" 11 110 5 "Memcached:" "Memcached is an open source, high-performance, distributed memory caching system." OFF "Redis Cache:" "Redis is an open source BSD licensed, in-memory data structure store." OFF 3>&1 1>&2 2>&3) fi @@ -81,6 +81,7 @@ fi CMS=$(whiptail --nocancel --title "What CMS should be installed?" --radiolist "Features" 11 118 5 "Nextcloud:" "Nextcloud is a suite of client-server software for creating and using file hosting services." OFF "Wordpress:" "WordPress is a content management system based on PHP." OFF "None:" "A plain webserver will be setup." OFF 3>&1 1>&2 2>&3) if [[ $CMS == "Nextcloud" ]]; then echo "" >> /tmp/install.txt +fi if [[ $CMS == "Wordpress" ]]; then echo "" >> /tmp/install.txt