aboutsummaryrefslogtreecommitdiff
path: root/src/auditor/generate-revoke-basedb.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-09-24 00:16:51 +0200
committerChristian Grothoff <christian@grothoff.org>2022-09-24 00:16:51 +0200
commit035e052c39923ce9017ffc76a1baef054606a08d (patch)
treecabd99a60852e7d63401044b25cf1cb0fa323572 /src/auditor/generate-revoke-basedb.sh
parentf05a3450e0bfd7a2c0f6a2f1eb1d12cb1c6e5c5d (diff)
downloadexchange-035e052c39923ce9017ffc76a1baef054606a08d.tar.xz
-fix test-revocation
Diffstat (limited to 'src/auditor/generate-revoke-basedb.sh')
-rwxr-xr-xsrc/auditor/generate-revoke-basedb.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/auditor/generate-revoke-basedb.sh b/src/auditor/generate-revoke-basedb.sh
index f262b4960..4188f0517 100755
--- a/src/auditor/generate-revoke-basedb.sh
+++ b/src/auditor/generate-revoke-basedb.sh
@@ -591,16 +591,19 @@ exit_cleanup
echo "Dumping database"
echo "Dumping PostgreSQL database: ${BASEDB}.sql"
pg_dump -O $TARGET_DB | sed -e '/AS integer/d' > ${BASEDB}.sql
-echo "Dumping libeufin database: ${BASEDB}-libeufin.sql"
+echo "Dumping libeufin database: ${TARGET_DB}-libeufin-*.sql"
+cd $MY_TMP_DIR
sqlite3 ${TARGET_DB}-nexus.sqlite3 ".dump" > ${BASEDB}-libeufin-nexus.sql
sqlite3 ${TARGET_DB}-sandbox.sqlite3 ".dump" > ${BASEDB}-libeufin-sandbox.sql
+rm ${TARGET_DB}-sandbox.sqlite3 ${TARGET_DB}-nexus.sqlite3 # libeufin DB
+
+cd $ORIGIN
+
echo $MASTER_PUB > ${BASEDB}.mpub
-# clean up
echo "Final clean up"
dropdb $TARGET_DB
-rm ${TARGET_DB}-sandbox.sqlite3 ${TARGET_DB}-nexus.sqlite3 # libeufin DB
echo "====================================="
echo " Finished generation of $BASEDB "