20 lines
917 B
Bash
20 lines
917 B
Bash
if [ ! -f "/etc/ICTM/selopts.list" ] || [ ! -f "/etc/ICTM/mainvar.list" ] ; then echo 'This system is not yet setup, please run the main installer first' && exit ; fi
|
|
|
|
source /etc/ICTM/selopts.list
|
|
source /etc/ICTM/mainvar.list
|
|
|
|
source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/ModulesMenu.list)
|
|
|
|
#Setting Menulist to webserver
|
|
declare -n CMSL="$webserv"CMSL
|
|
declare -n options="$webserv"Options
|
|
|
|
#Updating mod lists
|
|
option=$(whiptail --nocancel --title "Additional modules" --checklist "Please select enabled features" 11 74 5 "${options[@]}" 3>&1 1>&2 2>&3)
|
|
aonoption="/MySQL/"
|
|
aonoption="$aonoption /Unattended-Security-Updates/"
|
|
aonoption="$aonoption /Backup-Util/"
|
|
aonoption="$aonoption /AcmeSH/"
|
|
echo 'SelectedOptions=('$option')' > /etc/ICTM/selopts.list
|
|
echo 'EnabledAons=('$aonoption')' >> /etc/ICTM/selopts.list
|
|
declare -p CompatVer | cut -d ' ' -f 3- >> /etc/ICTM/mainvar.list |