Commit 26ccaecf authored by rg's avatar rg

Correction pour le download.

parent 7ee21a93
......@@ -117,9 +117,9 @@ RUN echo 'chown -R root: /var/cache/nginx /etc/nginx/ssl' >>$INIT; \
echo ' PORT=8080' >>$INIT; \
echo ' [ "BALANCER_IPLIST" = "" ] && BALANCER_IPLIST="127.0.0.1"' >>$INIT; \
echo ' [[ " $BALANCER_IPLIST " =~ " 127.0.0.1 " ]] && LOCAL_NODE="true" || LOCAL_NODE="false"' >>$INIT; \
echo ' [[ "$URL_DOWNLOADMAP" =~ ^.*/(.*\.mbtiles)$ ]] && LAST_USEMAP="--mbtiles ${BASH_REMATCH[1]}" && /bin/bash $INIT_DOWNLOAD $URL_DOWNLOADMAP' >>$INIT; \
echo ' /bin/bash $INIT_NGINX "$DOMAIN" "$USE_CACHE" "$SSL" "$SSL_LETSENCRYPTMAIL" "$MAPS_TOKEN" $BALANCER_IPLIST' >>$INIT; \
echo 'fi' >>$INIT; \
echo '[[ "$URL_DOWNLOADMAP" =~ ^.*/(.*\.mbtiles)$ ]] && LAST_USEMAP="--mbtiles ${BASH_REMATCH[1]}" && /bin/bash $INIT_DOWNLOAD $URL_DOWNLOADMAP' >>$INIT; \
echo '[[ "$USE_MAP" =~ ^-$|^$ ]] && USE_MAP=$LAST_USEMAP || USE_MAP="--mbtiles $USE_MAP"' >>$INIT; \
echo 'echo "last map: #$LAST_USEMAP#; use map: #$USE_MAP#"' >>$INIT; \
echo '[ "$LOCAL_NODE" = "true" ] && /bin/bash /usr/src/app/run.sh -p $PORT $USE_MAP' >>$INIT; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment