Browse Source

limit logs at next update

feature/auto_ssh
nicolas.dorier 6 years ago
parent
commit
b0877392c5
  1. 9
      btcpay-update.sh

9
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

Loading…
Cancel
Save