summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnetzbon/setup-exchange.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/netzbon/setup-exchange.sh b/netzbon/setup-exchange.sh
index b77e55d..3d1e795 100755
--- a/netzbon/setup-exchange.sh
+++ b/netzbon/setup-exchange.sh
@@ -66,6 +66,15 @@ then
fi
else
say "Master public key is $MASTER_PUBLIC_KEY"
+ if test ${DO_OFFLINE:-y} == y
+ then
+ MASTER_PUBLIC_KEY2=`sudo -i -u taler-exchange-offline taler-exchange-offline setup`
+ if "${MASTER_PUBLIC_KEY2}" != "${MASTER_PUBLIC_KEY}"
+ then
+ say "Error: master public key missmatch ${MASTER_PUBLIC_KEY2} does not match ${MASTER_PUBLIC_KEY}"
+ exit 1
+ fi
+ fi
fi
export MASTER_PUBLIC_KEY