commit eb781a66f43ac4fea9bdfb2f3fc209cda2ebba88 parent 1f54f7ae2ce49b7f29b1186bc70fe677bf292fbb Author: MS <ms@taler.net> Date: Tue, 24 Aug 2021 23:07:42 -1100 Prepare-script cleanup trap. Diffstat:
| M | bin/taler-deployment-prepare | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/bin/taler-deployment-prepare b/bin/taler-deployment-prepare @@ -26,6 +26,14 @@ if [[ -z ${TALER_CONFIG_CURRENCY+x} ]]; then exit 1 fi +# The script stops what started along the flow. +# This function should help against processes left +# somehow running. +function stop_running() { + taler-deployment-stop +} +trap "stop_running" EXIT + function generate_config() { EXCHANGE_PUB=$(gnunet-ecc -p "$HOME/deployment/private-keys/${TALER_ENV_NAME}-exchange-master.priv")