Browse Source
Make sure that if build.sh fail, it returns
feature/lndseedbackup
nicolas.dorier
5 years ago
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
2 changed files with
3 additions and
2 deletions
-
btcpay-update.sh
-
build.sh
|
|
@ -38,8 +38,9 @@ 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 [ "$BTCPAYGEN_OLD_PREGEN" == "true" ]; then |
|
|
|
cp Generated/docker-compose.generated.yml $BTCPAY_DOCKER_COMPOSE |
|
|
|
cp Generated/torrc.tmpl "$(dirname "$BTCPAY_DOCKER_COMPOSE")/torrc.tmpl" |
|
|
|
|
|
@ -30,7 +30,7 @@ docker run -v "$(pwd)/Generated:/app/Generated" \ |
|
|
|
-e "BTCPAYGEN_LIGHTNING=$BTCPAYGEN_LIGHTNING" \ |
|
|
|
-e "BTCPAYGEN_SUBNAME=$BTCPAYGEN_SUBNAME" \ |
|
|
|
-e "BTCPAY_HOST_SSHAUTHORIZEDKEYS=$BTCPAY_HOST_SSHAUTHORIZEDKEYS" \ |
|
|
|
--rm $BTCPAYGEN_DOCKER_IMAGE || echo "Building the fragment failed" |
|
|
|
--rm $BTCPAYGEN_DOCKER_IMAGE |
|
|
|
|
|
|
|
if [ "$BTCPAYGEN_REVERSEPROXY" == "nginx" ]; then |
|
|
|
cp Production/nginx.tmpl Generated/nginx.tmpl |
|
|
|