diff --git a/btcpay-update.sh b/btcpay-update.sh index 9aeb146..759935b 100755 --- a/btcpay-update.sh +++ b/btcpay-update.sh @@ -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