Update 'installer.sh'

This commit is contained in:
Bram Prieshof
2020-04-22 14:01:43 +02:00
parent ad68ed2d6d
commit 8b60bf651f

View File

@@ -229,16 +229,8 @@ fi
webserv="${webserv//:}" && webserv="${webserv,,}" webserv="${webserv//:}" && webserv="${webserv,,}"
#Setting Menulist to webserver #Setting Menulist to webserver
if [[ $webserv = "apache" ]]; then declare -n CMSL="$webserv"CMSL
#Apache Menulist declare -n options="$webserv"Options
CMSL=("${ApacheCMSL[@]}")
options=("${ApacheOptions[@]}")
fi
if [[ $webserv = "nginx" ]]; then
#nginx Menulist
CMSL=("${NginxCMSL[@]}")
options=("${NginxOptions[@]}")
fi
echo "Generating apt list for Generic" echo "Generating apt list for Generic"
curl --silent --show-error "$repo"/raw/branch/"$branch"/CoreModules/generic/apt.list >>/tmp/apt.list curl --silent --show-error "$repo"/raw/branch/"$branch"/CoreModules/generic/apt.list >>/tmp/apt.list
@@ -265,7 +257,7 @@ done
##----------## ##----------##
if [ $IMODE = n ]; then if [ $IMODE = n ]; then
option=$(whiptail --nocancel --title "Title" --checklist "Features" 11 110 5 "${options[@]}" 3>&1 1>&2 2>&3) option=$(whiptail --nocancel --title "Additional modules" --checklist "Features" 11 110 5 "${options[@]}" 3>&1 1>&2 2>&3)
fi fi
if [ $IMODE = l ]; then if [ $IMODE = l ]; then
choice () { choice () {