Added rough versioning system
This commit is contained in:
20
Scripts/Compat/Compat-V2.sh
Normal file
20
Scripts/Compat/Compat-V2.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
Reference in New Issue
Block a user