summaryrefslogtreecommitdiff
path: root/src/auditor/generate-revoke-basedb.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-08-23 20:40:26 +0200
committerChristian Grothoff <christian@grothoff.org>2022-08-23 20:40:26 +0200
commite96cf9ba66fb2dc96a5e09ef49fa8e8a38700338 (patch)
tree70f697e722d8ed9f2162ac1d0578691bb111ceba /src/auditor/generate-revoke-basedb.sh
parenta8076ec01ef964336bc8bcb6980ccbee2a4fa792 (diff)
downloadexchange-e96cf9ba66fb2dc96a5e09ef49fa8e8a38700338.tar.gz
exchange-e96cf9ba66fb2dc96a5e09ef49fa8e8a38700338.tar.bz2
exchange-e96cf9ba66fb2dc96a5e09ef49fa8e8a38700338.zip
-fix auditor tests (mostly)
Diffstat (limited to 'src/auditor/generate-revoke-basedb.sh')
-rwxr-xr-xsrc/auditor/generate-revoke-basedb.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/auditor/generate-revoke-basedb.sh b/src/auditor/generate-revoke-basedb.sh
index 4c83d2ecf..3832876d8 100755
--- a/src/auditor/generate-revoke-basedb.sh
+++ b/src/auditor/generate-revoke-basedb.sh
@@ -49,9 +49,9 @@ rm -f $WALLET_DB
# Configuration file will be edited, so we create one
# from the template.
-export CONF=generate-auditor-basedb-revocation.conf
+export CONF=${BASEDB}.conf
cp generate-auditor-basedb.conf $CONF
-
+taler-config -c ${CONF} -s exchange-offline -o MASTER_PRIV_FILE -V ${BASEDB}.mpriv
echo -n "Testing for libeufin(-cli)"
libeufin-cli --help >/dev/null </dev/null || exit_skip " MISSING"
@@ -73,9 +73,11 @@ createdb $TARGET_DB || exit_skip "Could not create database $TARGET_DB"
rm $TARGET_DB >/dev/null 2>/dev/null || true # libeufin
# obtain key configuration data
-MASTER_PRIV_FILE=`taler-config -f -c $CONF -s exchange-offline -o MASTER_PRIV_FILE`
+MASTER_PRIV_FILE=${TARGET_DB}.priv
+taler-config -f -c $CONF -s exchange-offline -o MASTER_PRIV_FILE -V ${MASTER_PRIV_FILE}
MASTER_PRIV_DIR=`dirname $MASTER_PRIV_FILE`
mkdir -p $MASTER_PRIV_DIR
+rm -f "${MASTER_PRIV_FILE}"
gnunet-ecc -g1 $MASTER_PRIV_FILE > /dev/null
export MASTER_PUB=`gnunet-ecc -p $MASTER_PRIV_FILE`
export EXCHANGE_URL=`taler-config -c $CONF -s EXCHANGE -o BASE_URL`