Update 'installer.sh'

This commit is contained in:
b.waal
2019-11-28 11:36:54 +01:00
parent 1720fbee92
commit afdc65b131

View File

@@ -78,6 +78,8 @@ echo "Administrator E-mail:"
read email
fi
webserv="${webserv//:}" && webserv="${webserv,,}"
if [[ $webserv == "Nginx:" ]]; then
echo "nginx php-imagick php-pear php${phpver}-fpm php${phpver}-mysql php${phpver}-cgi php${phpver}-common php${phpver}-mbstring php${phpver}-curl php${phpver}-gd php${phpver}-intl php${phpver}-soap php${phpver}-xml php${phpver}-xmlrpc php${phpver}-zip" >> /tmp/install.txt
fi
@@ -92,14 +94,25 @@ fi
if [[ $webserv = "Nginx:" ]]; then
#NGINX Addon menu
if [ $IMODE = n ]; then
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 [ $IMODE = l ]; then
#L mode selector option
fi
fi
if [[ $webserv = "Apache:" ]]; then
#Apache Addon menu
if [ $IMODE = n ]; then
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
if [ $IMODE = l ]; then
#L mode selector option
fi
fi
option="${option// /}" && option="${option/:/ }" && option="${option//:}" && option="${option,,}" && option="${option//'"'}"
if [[ $option == *"Memcached:"* ]]; then
#curl -s "$repo"/raw/branch/"$branch"/modules/MODNAME/"$webserv"-aptlist >> /tmp/install.txt
@@ -118,8 +131,14 @@ fi
##-------##
# CMS #
##-------##
if [ $IMODE = n ]; then
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)
fi
if [ $IMODE = l ]; then
#L mode selector for CMS
fi
if [[ $CMS == "Nextcloud:" ]]; then
echo "libxml2 openssl zlib1g libpng-dev redis-server" >> /tmp/install.txt
fi