taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit dff10cec5d40eb437709b7de227c2f9517700ae2
parent 770c3cd6cf9d534fcae154a77809e9752056b219
Author: ms <ms@taler.net>
Date:   Sat, 26 Jun 2021 09:00:58 +0200

checks

Diffstat:
Mbin/taler-deployment-config-instances | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bin/taler-deployment-config-instances b/bin/taler-deployment-config-instances @@ -114,7 +114,8 @@ def is_merchant_running(): def ensure_default_instance(): # Assumed is managed by ARM - if is_merchant_running(): + merchant_was_running = is_merchant_running() + if merchant_was_running: print("Found running merchant, assuming is managed by ARM. Terminating it") system("taler-deployment-arm -k taler-merchant") @@ -155,8 +156,10 @@ def ensure_default_instance(): merchant.terminate() merchant.wait() print("Merchant terminated, restarting it via ARM now.") + # Restarting the official ARM merchant. - system("taler-deployment-arm -i taler-merchant") + if merchant_was_running: + system("taler-deployment-arm -i taler-merchant") ensure_default_instance()