From 0336e62ccaf32854aa3133bcb44587d746573dfd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 16 Dec 2020 14:39:56 +0100 Subject: finish revocation DB generation fixes: add timetravel for helpers --- src/auditor/generate-revoke-basedb.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/auditor') diff --git a/src/auditor/generate-revoke-basedb.sh b/src/auditor/generate-revoke-basedb.sh index 18a55269d..82c9c50ba 100755 --- a/src/auditor/generate-revoke-basedb.sh +++ b/src/auditor/generate-revoke-basedb.sh @@ -103,7 +103,9 @@ TFN=`which taler-exchange-httpd` TBINPFX=`dirname $TFN` TLIBEXEC=${TBINPFX}/../lib/taler/libexec/ $TLIBEXEC/taler-helper-crypto-eddsa -c $CONF 2> taler-helper-crypto-eddsa.log & +SIGNKEY_HELPER_PID=$! $TLIBEXEC/taler-helper-crypto-rsa -c $CONF 2> taler-helper-crypto-rsa.log & +DENOM_HELPER_PID=$! taler-exchange-httpd -c $CONF 2> taler-exchange-httpd.log & EXCHANGE_PID=$! taler-merchant-httpd -c $CONF -L INFO 2> taler-merchant-httpd.log & @@ -272,6 +274,12 @@ export TIMETRAVEL="--timetravel=604800000000" echo "Launching exchange 1 week in the future" kill -TERM $EXCHANGE_PID +kill -TERM $DENOM_HELPER_PID +kill -TERM $SIGNKEY_HELPER_PID +$TLIBEXEC/taler-helper-crypto-eddsa $TIMETRAVEL -c $CONF 2> taler-helper-crypto-eddsa.log & +SIGNKEY_HELPER_PID=$! +$TLIBEXEC/taler-helper-crypto-rsa $TIMETRAVEL -c $CONF 2> taler-helper-crypto-rsa.log & +DENOM_HELPER_PID=$! taler-exchange-httpd $TIMETRAVEL -c $CONF 2> taler-exchange-httpd.log & export EXCHANGE_PID=$! @@ -372,12 +380,8 @@ echo "Dumping database" pg_dump -O $TARGET_DB | sed -e '/AS integer/d' > ${BASEDB}.sql echo $MASTER_PUB > ${BASEDB}.mpub - -WIRE_FEE_DIR=`taler-config -c $CONF -f -s exchangedb -o WIREFEE_BASE_DIR` -cp $WIRE_FEE_DIR/x-taler-bank.fee ${BASEDB}.fees date +%s > ${BASEDB}.age - # clean up echo "Final clean up" dropdb $TARGET_DB -- cgit v1.2.3