~tcuthbert/ubuntu-repository-cache/fix-cron

« back to all changes in this revision

Viewing changes to templates/cron/ubuntu-repository-cache_rsync.cron

  • Committer: Thomas Cuthbert
  • Date: 2017-09-11 07:26:38 UTC
  • Revision ID: thomas.cuthbert@canonical.com-20170911072638-8ubfq56ls5irw8w2
Newer versions of juju restrict socket access so this must be run as root

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
UNIT_PATH={{ UnitPath }}
6
6
# This cronjob will make the leader sync its view of the metadata with upstream
7
7
# It will then trigger a juju-run to let its peers synchronise.
8
 
{{ Minutes }} * * * * www-sync python3 /var/lib/juju/agents/{{ UnitPath }}/charm/lib/ubuntu_repository_cache/metadata_sync.py
 
8
{{ Minutes }} * * * * root python3 /var/lib/juju/agents/{{ UnitPath }}/charm/lib/ubuntu_repository_cache/metadata_sync.py
9
9