diff --git a/jobs/wesher/wesher.logrotate b/src/configs/wesher.logrotate similarity index 100% rename from jobs/wesher/wesher.logrotate rename to src/configs/wesher.logrotate diff --git a/src/steps-postinstall/10-wesher.sh b/src/steps-postinstall/10-wesher.sh index 0e82896..ba083e7 100755 --- a/src/steps-postinstall/10-wesher.sh +++ b/src/steps-postinstall/10-wesher.sh @@ -2,6 +2,10 @@ task_begin "Configuring wesher"; +cp "./configs/wesher.logrotate" "/etc/logrotate.d/wesher"; +chown root:root "/etc/logrotate.d/wesher"; + + # HACK: Ref https://github.com/costela/wesher/issues/70 WESHER_CLUSTER_KEY="${wesher_secret}" wesher /usr/local/sbin/wesher --overlay-net 172.31.250.0/16 --log-level info --join "${wesher_join_ip}" &