Updated option menu
This commit is contained in:
25
installer.sh
25
installer.sh
@@ -69,8 +69,8 @@ NginxCMSL+=("Wordpress:" "WordPress is a content management system based on PHP.
|
|||||||
NginxCMSL+=("Nextcloud:" "Nextcloud is a suite of client-server software for creating and using file hosting services." OFF)
|
NginxCMSL+=("Nextcloud:" "Nextcloud is a suite of client-server software for creating and using file hosting services." OFF)
|
||||||
#Options
|
#Options
|
||||||
NginxOptions=("Option 1:" "Option 1 Desription" OFF)
|
NginxOptions=("Option 1:" "Option 1 Desription" OFF)
|
||||||
NginxOptions+=("Option 2: " "Option 2 Desription" OFF)
|
NginxOptions+=("Option 2:" "Option 2 Desription" OFF)
|
||||||
NginxOptions+=("Option 3: " "Option 3 Desription" OFF)
|
NginxOptions+=("Option 3:" "Option 3 Desription" OFF)
|
||||||
|
|
||||||
##Apache
|
##Apache
|
||||||
#CMSList
|
#CMSList
|
||||||
@@ -87,15 +87,21 @@ webservers=("Nginx" "Apache" "Quit")
|
|||||||
#CMSList
|
#CMSList
|
||||||
NginxCMSL=("Wordpress" "Nextcloud" "None")
|
NginxCMSL=("Wordpress" "Nextcloud" "None")
|
||||||
#Options
|
#Options
|
||||||
NginxOptions=("Option 1" "Ngx Option 2")
|
NginxOptions=("Ngx Option 1:" "Ngx Option 2:" "Ngx Option 3:")
|
||||||
|
|
||||||
|
|
||||||
##Apache
|
##Apache
|
||||||
#CMSList
|
#CMSList
|
||||||
ApacheCMSL=("Wordpress" "Nextcloud" "None")
|
ApacheCMSL=("Wordpress" "Nextcloud" "None")
|
||||||
#Options
|
#Options
|
||||||
ApacheOptions=("Option 1" "Apa Option 2")
|
ApacheOptions=("Apa Option 1:" "Apa Option 2:" "Apa Option 3:")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
##---------------------##
|
||||||
|
# Always-on modules #
|
||||||
|
##---------------------##
|
||||||
|
aonoption="/MySQL/"
|
||||||
|
aonoption="$aonoption /Unattended-Security-Updates/"
|
||||||
|
|
||||||
##---------------##
|
##---------------##
|
||||||
# Functions #
|
# Functions #
|
||||||
@@ -334,12 +340,9 @@ done
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#Cleaning options from menu
|
#Cleaning options from menu
|
||||||
option="${option,,}" && option="${option// /}"
|
option="${option,,}" && option="${option// /}" && option="${option//:/ }" && option="${option//'"'}"
|
||||||
#Always on option modules
|
#Combining selected option with always-on options
|
||||||
option="$option /MySQL/"
|
option="$option""$aonoption"
|
||||||
option="$option /Unattended-Security-Updates/"
|
|
||||||
#Cleaning all options
|
|
||||||
option="${option/:/ }" && option="${option//:}" && option="${option//'"'}"
|
|
||||||
|
|
||||||
echo "Generating apt list for Options"
|
echo "Generating apt list for Options"
|
||||||
for val1 in ${option[*]}; do
|
for val1 in ${option[*]}; do
|
||||||
@@ -539,4 +542,4 @@ fi
|
|||||||
# Services #
|
# Services #
|
||||||
##------------##
|
##------------##
|
||||||
|
|
||||||
systemctl restart sshd
|
systemctl restart sshd
|
||||||
Reference in New Issue
Block a user