From 505745fa3bab9ef1345a9caaeba387b1b5f4f857 Mon Sep 17 00:00:00 2001 From: MS Date: Tue, 15 Sep 2020 15:26:51 +0200 Subject: prepare script init instances --- bin/taler-deployment-prepare | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'bin') diff --git a/bin/taler-deployment-prepare b/bin/taler-deployment-prepare index d1c38cc..67fc44f 100755 --- a/bin/taler-deployment-prepare +++ b/bin/taler-deployment-prepare @@ -143,3 +143,20 @@ case $TALER_ENV_NAME in *) ;; esac + +# Configure instances. +taler-deployment-arm -s +if taler-deployment-arm -I | grep "^taler-merchant"; then + echo "Merchant backend runs already, please call 'taler-config-instances' manually" + exit +fi + +# Quickly start+shutdown a merchant process. +taler-deployment-arm -i taler-merchant +sleep 2 +if ! taler-deployment-arm -I | grep "^taler-merchant" | grep "status=started"; then + echo "Merchant didn't start, cannot configure instances." + exit 1 +fi + +taler-config-instances -- cgit v1.2.3