|
|
@ -17,6 +17,15 @@ fi |
|
|
|
cd "$BTCPAY_BASE_DIRECTORY/btcpayserver-docker" |
|
|
|
git pull --force |
|
|
|
|
|
|
|
if ! [ -f "/etc/docker/daemon.json" ]; then |
|
|
|
echo "{ |
|
|
|
\"log-driver\": \"json-file\", |
|
|
|
\"log-opts\": {\"max-size\": \"5m\", \"max-file\": \"3\"} |
|
|
|
}" > /etc/docker/daemon.json |
|
|
|
echo "Setting limited log files in /etc/docker/daemon.json" |
|
|
|
[ -x "$(command -v systemctl)" ] && systemctl restart docker |
|
|
|
fi |
|
|
|
|
|
|
|
. ./build.sh |
|
|
|
if [ "$BTCPAYGEN_OLD_PREGEN" == "true" ]; then |
|
|
|
cp Generated/docker-compose.generated.yml $BTCPAY_DOCKER_COMPOSE |
|
|
|