From 6cc185085e4b2479d276e7264e89c8e00fecf641 Mon Sep 17 00:00:00 2001 From: ms Date: Fri, 17 Sep 2021 17:14:30 +0200 Subject: debug --- bin/taler-deployment-prepare-with-eufin | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/taler-deployment-prepare-with-eufin b/bin/taler-deployment-prepare-with-eufin index 27715e7..b28adc4 100755 --- a/bin/taler-deployment-prepare-with-eufin +++ b/bin/taler-deployment-prepare-with-eufin @@ -57,6 +57,7 @@ function generate_config() { ## Step 1: Generate config ## +echo -n "Generating configuration.." case $TALER_ENV_NAME in tanker|demo|test|int|local) generate_config @@ -65,15 +66,15 @@ case $TALER_ENV_NAME in echo "Not generating config for env $TALER_ENV_NAME" ;; esac - +echo -n " OK" ## ## Step 1b: initialize database ## - +echo -n "Reset and init exchange DB.." if test $WITH_DB_RESET = yes; then taler-exchange-dbinit --reset fi - +echo " OK" ## ## Step 2: Copy key material and update denom keys ## @@ -82,16 +83,18 @@ fi # set up properly. case $TALER_ENV_NAME in demo) - echo "linking taler-data" + echo -n "Syminking demo's taler-data/ to the color's home directory.." ln -sfT ~demo/shared-data ~/taler-data # Check if we won't mess up permissions later if [[ ! -g ~/taler-data ]]; then echo "the shared-data directory should have the set-group-id bit set" exit 1 fi + echo " OK" ;; esac +echo -n "Trying to copy the exchange private key from deployment.git.." case $TALER_ENV_NAME in demo|test|int|local) EXCHANGE_PUB=$(gnunet-ecc -p "$HOME/deployment/private-keys/${TALER_ENV_NAME}-exchange-master.priv") @@ -110,20 +113,21 @@ case $TALER_ENV_NAME in echo "Not copying key material for env $TALER_ENV_NAME" ;; esac +echo " OK" +echo -n "Add this exchange to the auditor.." EXCHANGE_MASTER_PUB=$(taler-config -s exchange -o master_public_key) taler-auditor-exchange \ -m "$EXCHANGE_MASTER_PUB" \ -u "$(taler-config -s exchange -o base_url)" || true - # Make configuration accessible to auditor chmod 750 "$HOME/.config" - +echo " OK" ## ## Step 3: Set up the exchange key material ## - +echo -n "Setup exchange's key material.." taler-deployment-arm -s # Quickly start+shutdown exchange httpd and crypto SM helpers @@ -161,7 +165,7 @@ done taler-deployment-arm -k taler-exchange taler-deployment-arm -k taler-exchange-secmod-rsa taler-deployment-arm -k taler-exchange-secmod-eddsa - +echo " OK" # Give time to store to disk. sleep 5 -- cgit v1.2.3