Added var to file exports
This commit is contained in:
14
installer.sh
14
installer.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user