diff --git a/btcpay-setup.sh b/btcpay-setup.sh index d511827..7fd2747 100755 --- a/btcpay-setup.sh +++ b/btcpay-setup.sh @@ -331,7 +331,7 @@ fi cd "$(dirname $BTCPAY_ENV_FILE)" -if [ "$OLD_BTCPAY_DOCKER_COMPOSE" != "$BTCPAY_DOCKER_COMPOSE" ]; then +if [ ! -z "$OLD_BTCPAY_DOCKER_COMPOSE" ] && [ "$OLD_BTCPAY_DOCKER_COMPOSE" != "$BTCPAY_DOCKER_COMPOSE" ]; then echo "Closing old docker-compose at $OLD_BTCPAY_DOCKER_COMPOSE..." docker-compose -f "$OLD_BTCPAY_DOCKER_COMPOSE" down fi