Removed old code and fixed typo

This commit is contained in:
bprieshof
2019-11-28 14:28:47 +01:00
parent e7c9f3bfcb
commit 7a5d2485ef

View File

@@ -101,16 +101,11 @@ webserv="${webserv//:}" && webserv="${webserv,,}"
curl "$repo"/raw/branch/"$branch"/CoreModules/"$webserv"/apt.list >>/tmp/apt.list
if [[ $webserv == "Apache:" ]]; then
echo "apache2 php-pear libapache2-mod-php 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
##----------##
# Addons #
##----------##
if [[ $webserv = "Nginx:" ]]; then
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)
@@ -154,7 +149,7 @@ done
fi
fi
if [[ $webserv = "Apache:" ]]; then
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)
@@ -241,19 +236,6 @@ curl "$repo"/raw/branch/"$branch"/CMS/"$CMS"/$webserv/apt.list >>/tmp/apt.list
curl "$repo"/raw/branch/"$branch"/CMS/"$CMS"/apt.list >>/tmp/apt.list
if [[ $CMS == "Nextcloud:" ]]; then
echo "libxml2 openssl zlib1g libpng-dev redis-server" >> /tmp/install.txt
fi
if [[ $CMS == "Wordpress:" ]]; then
echo "" >> /tmp/install.txt
fi
if [[ $CMS == "None:" ]]; then
echo "" >> /tmp/install.txt
fi
##--------------------##
# Pre-Requirements #
##--------------------##