website/systemd
2023-09-14 18:34:53 +10:00
..
conservancy-www-cleanup.service Update "cleanup" and "update" services for Python 3 2023-09-14 18:14:22 +10:00
conservancy-www-update.service Update "cleanup" and "update" services for Python 3 2023-09-14 18:14:22 +10:00
conservancy-www-update.sh fixup! Fix git merge during schedule update 2023-09-14 18:34:53 +10:00
conservancy-www-update.timer systemd: Replace cron infrastructure. 2019-11-23 18:20:09 -05:00
README.md Add Ansible config 2023-09-14 18:23:04 +10:00

Install with:

cp systemd/conservancy-www-*.{service,timer} /etc/systemd/system
systemctl enable conservancy-www-cleanup.service
systemctl start conservancy-www-cleanup.service
systemctl enable conservancy-www-update.timer
systemctl start conservancy-www-update.timer

Monitor with:

systemctl list-timers --all
journalctl --catalog --follow --unit conservancy-www-update.service

Updates will fail unless /var/www/website has a git upstream, so set that with:

git remote add upstream https://k.sfconservancy.org/website
git branch --set-upstream-to=upstream/master master

Note that the update script does not run migrate.