From 784141c5e6e66ce349cf6d39d0bbf7848545548f Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 5 Jun 2019 01:48:03 -0700 Subject: [PATCH] adjust script parameter --- docker/entrypoint.sh | 2 +- weed/command/scaffold.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 42f71a5c3..c28bd263c 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -49,7 +49,7 @@ case "$1" in FIX_REPLICATION_CRON_SCHEDULE=${CRON_SCHEDULE-*/7 * * * * *} echo "$FIX_REPLICATION_CRON_SCHEDULE" 'echo "volume.fix.replication" | weed shell -master='$MASTER > /crontab BALANCING_CRON_SCHEDULE=${CRON_SCHEDULE-25 * * * * *} - echo "$BALANCING_CRON_SCHEDULE" 'echo "volume.balance -c ALL -f" | weed shell -master='$MASTER >> /crontab + echo "$BALANCING_CRON_SCHEDULE" 'echo "volume.balance -c ALL -force" | weed shell -master='$MASTER >> /crontab echo "Running Crontab:" cat /crontab exec supercronic /crontab diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go index 2282658bb..242bdddd7 100644 --- a/weed/command/scaffold.go +++ b/weed/command/scaffold.go @@ -321,6 +321,7 @@ key = "" # this file is read by master [master.maintenance] +# periodically run these scripts are the same as running them from 'weed shell' scripts = """ ec.encode -fullPercent=95 -quietFor=1h ec.rebuild -force