diff --git a/installer.sh b/installer.sh index 62cc9a6..2aaa1bd 100644 --- a/installer.sh +++ b/installer.sh @@ -251,6 +251,17 @@ curl --silent --show-error "$repo"/raw/branch/"$branch"/CoreModules/"$webserv"/a printf " " >>/tmp/apt.list +##-----------------## +# Storeing vars # +##-----------------## + +mkdir /etc/ICTM +echo "InstDate=$(date "+%d-%B-%Y")" >> mainvar.list +for storeme in PKGM PKGA PKGI OUTPUT IMODE repo branch phpver sqlver PHPMyadmin email hostname; do + declare -p $storeme | cut -d ' ' -f 3- >> /etc/ICTM/mainvar.list +done + + ##----------## # Addons # ##----------## @@ -302,6 +313,9 @@ done option="${option%"${option##*[![:space:]]}"}" fi +#saving selected modules +echo 'SelectedOptions=('$option')' > /etc/ICTM/selopts.list + #Cleaning options from menu option="${option,,}" && option="${option// /}" && option="${option//:/ }" && option="${option//'"'}" #Combining selected option with always-on options