Added var to file exports

This commit is contained in:
Bram Prieshof
2020-04-09 12:13:42 +02:00
parent 5823d9e01c
commit 88acbb4d74

View File

@@ -251,6 +251,17 @@ curl --silent --show-error "$repo"/raw/branch/"$branch"/CoreModules/"$webserv"/a
printf " " >>/tmp/apt.list 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 # # Addons #
##----------## ##----------##
@@ -302,6 +313,9 @@ done
option="${option%"${option##*[![:space:]]}"}" option="${option%"${option##*[![:space:]]}"}"
fi fi
#saving selected modules
echo 'SelectedOptions=('$option')' > /etc/ICTM/selopts.list
#Cleaning options from menu #Cleaning options from menu
option="${option,,}" && option="${option// /}" && option="${option//:/ }" && option="${option//'"'}" option="${option,,}" && option="${option// /}" && option="${option//:/ }" && option="${option//'"'}"
#Combining selected option with always-on options #Combining selected option with always-on options