mirror of
https://github.com/Retropex/btcpayserver-docker.git
synced 2025-05-12 21:10:42 +02:00
Gracefully fail if build.sh fail
This commit is contained in:
parent
ec7bca1991
commit
7360cec929
@ -450,7 +450,12 @@ if $HAS_DOCKER; then
|
||||
fi
|
||||
|
||||
# Generate the docker compose in BTCPAY_DOCKER_COMPOSE
|
||||
$HAS_DOCKER && . ./build.sh
|
||||
if $HAS_DOCKER; then
|
||||
if ! ./build.sh; then
|
||||
echo "Failed to generate the docker-compose"
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$BTCPAYGEN_OLD_PREGEN" == "true" ]]; then
|
||||
cp Generated/docker-compose.generated.yml $BTCPAY_DOCKER_COMPOSE
|
||||
|
@ -38,9 +38,12 @@ if ! [ -f "/etc/docker/daemon.json" ] && [ -w "/etc/docker" ]; then
|
||||
}" > /etc/docker/daemon.json
|
||||
echo "Setting limited log files in /etc/docker/daemon.json"
|
||||
fi
|
||||
set -e
|
||||
. ./build.sh
|
||||
set +e
|
||||
|
||||
if ! ./build.sh; then
|
||||
echo "Failed to generate the docker-compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$BTCPAYGEN_OLD_PREGEN" == "true" ]; then
|
||||
cp Generated/docker-compose.generated.yml $BTCPAY_DOCKER_COMPOSE
|
||||
cp Generated/torrc.tmpl "$(dirname "$BTCPAY_DOCKER_COMPOSE")/torrc.tmpl"
|
||||
|
Loading…
Reference in New Issue
Block a user