summaryrefslogtreecommitdiff
path: root/bin/taler-deployment-prepare-with-eufin
diff options
context:
space:
mode:
authorms <ms@taler.net>2021-09-18 11:32:53 +0200
committerms <ms@taler.net>2021-09-18 11:32:53 +0200
commita9b9b34c2a13412ae28ee28e2dd3a090da440263 (patch)
tree8066663b43b5fe91dc083f3316bb334beed9e1a6 /bin/taler-deployment-prepare-with-eufin
parent0bf1b8a37b05d6ce38b008acca4ea3bf80b7989b (diff)
downloaddeployment-a9b9b34c2a13412ae28ee28e2dd3a090da440263.tar.gz
deployment-a9b9b34c2a13412ae28ee28e2dd3a090da440263.tar.bz2
deployment-a9b9b34c2a13412ae28ee28e2dd3a090da440263.zip
Optionally reset euFind databases.
Diffstat (limited to 'bin/taler-deployment-prepare-with-eufin')
-rwxr-xr-xbin/taler-deployment-prepare-with-eufin16
1 files changed, 14 insertions, 2 deletions
diff --git a/bin/taler-deployment-prepare-with-eufin b/bin/taler-deployment-prepare-with-eufin
index 374a977..8137e94 100755
--- a/bin/taler-deployment-prepare-with-eufin
+++ b/bin/taler-deployment-prepare-with-eufin
@@ -70,11 +70,11 @@ echo " OK"
##
## Step 1b: initialize database
##
-echo -n "Reset and init exchange DB.."
if test $WITH_DB_RESET = yes; then
+ echo -n "Reset and init exchange DB.."
taler-exchange-dbinit --reset
+ echo " OK"
fi
-echo " OK"
##
## Step 2: Copy key material and update denom keys
##
@@ -172,6 +172,16 @@ sleep 5
##
## Step 4: Set up euFin
##
+
+if test $WITH_DB_RESET = yes; then
+ echo -n "Resetting euFin databases.."
+ # NOTE/FIXME: those values _could_ be extracted from
+ # the environment, as this one contains already the DB
+ # connection strings.
+ rm ~/nexus.sqlite
+ rm ~/sandbox.sqlite
+ echo " OK"
+fi
export LIBEUFIN_SANDBOX_USERNAME="admin"
export LIBEUFIN_SANDBOX_PASSWORD=${LIBEUFIN_ENV_SANDBOX_ADMIN_PASSWORD}
# $1 = ebics user id, $2 = ebics partner, $3 = bank connection name
@@ -365,7 +375,9 @@ esac
##
if test $WITH_DB_RESET = yes; then
+ echo -n "Reset and init merchant database.."
taler-merchant-dbinit --reset
+ echo " OK"
fi
# Making sure ARM is not running yet.