Updated option menu
This commit is contained in:
19
installer.sh
19
installer.sh
@@ -87,15 +87,21 @@ webservers=("Nginx" "Apache" "Quit")
|
||||
#CMSList
|
||||
NginxCMSL=("Wordpress" "Nextcloud" "None")
|
||||
#Options
|
||||
NginxOptions=("Option 1" "Ngx Option 2")
|
||||
NginxOptions=("Ngx Option 1:" "Ngx Option 2:" "Ngx Option 3:")
|
||||
|
||||
|
||||
##Apache
|
||||
#CMSList
|
||||
ApacheCMSL=("Wordpress" "Nextcloud" "None")
|
||||
#Options
|
||||
ApacheOptions=("Option 1" "Apa Option 2")
|
||||
ApacheOptions=("Apa Option 1:" "Apa Option 2:" "Apa Option 3:")
|
||||
fi
|
||||
|
||||
##---------------------##
|
||||
# Always-on modules #
|
||||
##---------------------##
|
||||
aonoption="/MySQL/"
|
||||
aonoption="$aonoption /Unattended-Security-Updates/"
|
||||
|
||||
##---------------##
|
||||
# Functions #
|
||||
@@ -334,12 +340,9 @@ done
|
||||
fi
|
||||
|
||||
#Cleaning options from menu
|
||||
option="${option,,}" && option="${option// /}"
|
||||
#Always on option modules
|
||||
option="$option /MySQL/"
|
||||
option="$option /Unattended-Security-Updates/"
|
||||
#Cleaning all options
|
||||
option="${option/:/ }" && option="${option//:}" && option="${option//'"'}"
|
||||
option="${option,,}" && option="${option// /}" && option="${option//:/ }" && option="${option//'"'}"
|
||||
#Combining selected option with always-on options
|
||||
option="$option""$aonoption"
|
||||
|
||||
echo "Generating apt list for Options"
|
||||
for val1 in ${option[*]}; do
|
||||
|
||||
Reference in New Issue
Block a user