diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-09-24 00:16:51 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-09-24 00:16:51 +0200 |
commit | 035e052c39923ce9017ffc76a1baef054606a08d (patch) | |
tree | cabd99a60852e7d63401044b25cf1cb0fa323572 /src/auditor/generate-revoke-basedb.sh | |
parent | f05a3450e0bfd7a2c0f6a2f1eb1d12cb1c6e5c5d (diff) | |
download | exchange-035e052c39923ce9017ffc76a1baef054606a08d.tar.xz |
-fix test-revocation
Diffstat (limited to 'src/auditor/generate-revoke-basedb.sh')
-rwxr-xr-x | src/auditor/generate-revoke-basedb.sh | 9 |
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 " |