Do interactive app configuration before installing base system

This commit is contained in:
Bob Mottram 2016-10-15 17:20:04 +01:00
parent cdbbf0de22
commit 6debd6b5f5
2 changed files with 26 additions and 21 deletions

View File

@ -1345,6 +1345,7 @@ function interactive_config {
choose_static_ip choose_static_ip
choose_default_domain_name choose_default_domain_name
choose_email_address choose_email_address
install_apps_interactive
# delete the temporary configuration file # delete the temporary configuration file
if [ -f temp.cfg ]; then if [ -f temp.cfg ]; then

View File

@ -402,11 +402,7 @@ function remove_apps {
update_installed_apps_list update_installed_apps_list
} }
function install_apps { function install_apps_interactive {
is_interactive=$1
# interactive install configuration for each app
if [ ${is_interactive} ]; then
echo $"Interactive installer" echo $"Interactive installer"
app_index=0 app_index=0
for a in "${APPS_AVAILABLE[@]}" for a in "${APPS_AVAILABLE[@]}"
@ -428,6 +424,14 @@ function install_apps {
app_index=$[app_index+1] app_index=$[app_index+1]
done done
echo $"Interactive settings complete" echo $"Interactive settings complete"
}
function install_apps {
is_interactive=$1
# interactive install configuration for each app
if [ ${is_interactive} ]; then
install_apps_interactive
fi fi
# now install the apps # now install the apps