From 4732646cd84ab0f7f002a4ab2ca179130200211d Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 21 Feb 2019 00:01:52 +0900 Subject: [PATCH] fix btcpay-down for some installs --- btcpay-down.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/btcpay-down.sh b/btcpay-down.sh index 0bfde1c..0249fab 100755 --- a/btcpay-down.sh +++ b/btcpay-down.sh @@ -3,4 +3,6 @@ . /etc/profile.d/btcpay-env.sh cd "`dirname $BTCPAY_ENV_FILE`" -docker-compose -f $BTCPAY_DOCKER_COMPOSE down -t "${COMPOSE_HTTP_TIMEOUT:-180}" +if ! docker-compose -f $BTCPAY_DOCKER_COMPOSE down -t "${COMPOSE_HTTP_TIMEOUT:-180}" 2>/dev/null; then + docker-compose -f $BTCPAY_DOCKER_COMPOSE down +fi