Fixed menu list for append scripts
This commit is contained in:
12
AppendCMS.sh
12
AppendCMS.sh
@@ -11,16 +11,8 @@ rm /tmp/apt.list
|
|||||||
source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/branch/"$branch"/ModulesMenu.list)
|
source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/branch/"$branch"/ModulesMenu.list)
|
||||||
|
|
||||||
#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
|
|
||||||
|
|
||||||
|
|
||||||
##----------------##
|
##----------------##
|
||||||
|
|||||||
@@ -15,16 +15,8 @@ rm /tmp/apt.list
|
|||||||
source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/branch/"$branch"/ModulesMenu.list)
|
source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/branch/"$branch"/ModulesMenu.list)
|
||||||
|
|
||||||
#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
|
|
||||||
|
|
||||||
#Filtering already installed modules
|
#Filtering already installed modules
|
||||||
for target in "${SelectedOptions[@]}"; do
|
for target in "${SelectedOptions[@]}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user