Add COMPOSE_HTTP_TIMEOUT at the next update

This commit is contained in:
nicolas.dorier 2018-11-05 18:41:05 +09:00
parent 00abab4a36
commit 65094aa30b

View File

@ -22,6 +22,11 @@ if [ "$BTCPAYGEN_OLD_PREGEN" == "true" ]; then
cp Generated/docker-compose.generated.yml $BTCPAY_DOCKER_COMPOSE
fi
if ! grep -Fxq "export COMPOSE_HTTP_TIMEOUT=\"180\"" "/etc/profile.d/btcpay-env.sh"; then
echo "export COMPOSE_HTTP_TIMEOUT=\"180\"" >> /etc/profile.d/btcpay-env.sh
export COMPOSE_HTTP_TIMEOUT=180
echo "Adding COMPOSE_HTTP_TIMEOUT=180 in btcpay-env.sh"
fi
for scriptname in *.sh; do
if [ "$scriptname" == "build.sh" ] || \