summaryrefslogtreecommitdiff
path: root/regional-currency/main.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regional-currency/main.sh')
-rwxr-xr-xregional-currency/main.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/regional-currency/main.sh b/regional-currency/main.sh
index 1d3eb6a..5234b78 100755
--- a/regional-currency/main.sh
+++ b/regional-currency/main.sh
@@ -32,8 +32,6 @@ say "can be changed in config/user.conf."
say "Logs are written in setup.log."
say ""
-ask_questions
-
# END USER INTERACTION
# Check if the user is root, otherwise EXIT.
@@ -41,9 +39,13 @@ check_user
# Installation of deb packages required
say ""
-say "Installing packages (step 1 of 5)"
+say "Installing packages (step 1 of 6)"
. install_packages.sh
+say ""
+say "Interactive configuration (step 2 of 6)"
+ask_questions
+
check_dns
# Remove when libeufin currencies.conf is in sync with exchange
cat >>/usr/share/libeufin/config.d/netzbon.conf <<EOF
@@ -56,8 +58,6 @@ fractional_normal_digits=2
fractional_trailing_zero_digits=2
alt_unit_names={"0":"NETZBON"}
EOF
-check_currency_spec $CURRENCY
-check_currency_spec $FIAT_CURRENCY
if test -z "${BANK_EXCHANGE_PASSWORD:-}"; then
BANK_EXCHANGE_PASSWORD=$(uuidgen)
@@ -75,19 +75,19 @@ else
fi
say ""
-say "Configuring nginx (step 2 of 5)"
+say "Configuring nginx (step 3 of 6)"
./config_nginx.sh
say ""
-say "Setting up libeufin (step 3 of 5)"
+say "Setting up libeufin (step 4 of 6)"
./setup-libeufin.sh
say ""
-say "Setting up exchange (step 4 of 5)"
+say "Setting up exchange (step 5 of 6)"
./setup-exchange.sh
say ""
-say "Setting up merchant (step 5 of 5)"
+say "Setting up merchant (step 6 of 6)"
./setup-merchant.sh
# Final message to the user