From 86de25f1429a05e24e5ff50b23147edfbffe2880 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 1 Jul 2019 16:31:31 +0900 Subject: [PATCH] Move pull-image outside of the nginx block --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 4a32291..0853d1c 100755 --- a/build.sh +++ b/build.sh @@ -29,9 +29,10 @@ docker run -v "$(pwd)/Generated:/app/Generated" \ if [ "$BTCPAYGEN_REVERSEPROXY" == "nginx" ]; then cp Production/nginx.tmpl Generated/nginx.tmpl - chmod +x Generated/pull-images.sh fi +[[ -f "Generated/pull-images.sh" ]] && chmod +x Generated/pull-images.sh + if [ "$BTCPAYGEN_REVERSEPROXY" == "traefik" ]; then cp Traefik/traefik.toml Generated/traefik.toml :> Generated/acme.json