mirror of
https://github.com/Retropex/btcpayserver-docker.git
synced 2025-05-12 13:00:41 +02:00
Do not run btcpay-update.sh in the test, fix install
This commit is contained in:
parent
a9ff6f0e11
commit
60bd11f833
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Trying to connect to btcpayserver..."
|
||||||
while true; do
|
while true; do
|
||||||
if [ "$(curl -sL -w "%{http_code}\\n" "http://localhost/" -o /dev/null)" == "200" ]; then
|
if [ "$(curl -sL -w "%{http_code}\\n" "http://localhost/" -o /dev/null)" == "200" ]; then
|
||||||
echo "Successfully contacted BTCPayServer"
|
echo "Successfully contacted BTCPayServer"
|
||||||
|
@ -17,9 +17,8 @@ export BTCPAYGEN_REVERSEPROXY="nginx"
|
|||||||
export BTCPAYGEN_LIGHTNING="clightning"
|
export BTCPAYGEN_LIGHTNING="clightning"
|
||||||
source ./btcpay-setup.sh -i
|
source ./btcpay-setup.sh -i
|
||||||
|
|
||||||
timeout 10m bash .circleci/test-connectivity.sh
|
timeout 5m bash .circleci/test-connectivity.sh
|
||||||
|
|
||||||
# Testing scripts are not crashing and installed
|
# Testing scripts are not crashing and installed
|
||||||
btcpay-up.sh
|
btcpay-up.sh
|
||||||
btcpay-update.sh
|
|
||||||
btcpay-down.sh
|
btcpay-down.sh
|
@ -31,21 +31,14 @@ if [[ "$1" != "--skip-git-pull" ]]; then
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! [[ "$OSTYPE" == "darwin"* ]] && ! [ -f "/etc/docker/daemon.json" ] && [ -w "/etc/docker" ]; then
|
||||||
if ! [[ "$OSTYPE" == "darwin"* ]]; then
|
|
||||||
# Not Mac OS
|
|
||||||
# TODO Should we configure logging for Mac OS too? The file path will be different and access rights need to be considered too...
|
|
||||||
|
|
||||||
if ! [ -f "/etc/docker/daemon.json" ]; then
|
|
||||||
echo "{
|
echo "{
|
||||||
\"log-driver\": \"json-file\",
|
\"log-driver\": \"json-file\",
|
||||||
\"log-opts\": {\"max-size\": \"5m\", \"max-file\": \"3\"}
|
\"log-opts\": {\"max-size\": \"5m\", \"max-file\": \"3\"}
|
||||||
}" > /etc/docker/daemon.json
|
}" > /etc/docker/daemon.json
|
||||||
echo "Setting limited log files in /etc/docker/daemon.json"
|
echo "Setting limited log files in /etc/docker/daemon.json"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
. ./build.sh
|
. ./build.sh
|
||||||
if [ "$BTCPAYGEN_OLD_PREGEN" == "true" ]; then
|
if [ "$BTCPAYGEN_OLD_PREGEN" == "true" ]; then
|
||||||
cp Generated/docker-compose.generated.yml $BTCPAY_DOCKER_COMPOSE
|
cp Generated/docker-compose.generated.yml $BTCPAY_DOCKER_COMPOSE
|
||||||
|
Loading…
Reference in New Issue
Block a user