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