diff options
| author | Joe Carstairs <me@joeac.net> | 2026-07-01 18:31:34 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-07-01 18:31:34 +0100 |
| commit | c7c8a96a572dd04c3aff44284c4c46da04deaa37 (patch) | |
| tree | 9318ff98f197a1a948e651d12116983019dedcb6 /make/crontab.mk | |
| parent | f73512107c7cf8d95fb1f97fa69706a1519e5ca3 (diff) | |
moves helper makefiles into make/ dir
Diffstat (limited to 'make/crontab.mk')
| -rw-r--r-- | make/crontab.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/make/crontab.mk b/make/crontab.mk new file mode 100644 index 0000000..aab3285 --- /dev/null +++ b/make/crontab.mk @@ -0,0 +1,17 @@ +.PHONY: install_crontab +install_crontab: /etc/periodic/daily/joeac.net + +.PHONY: reinstall_crontab +reinstall_crontab: /etc/periodic/daily/joeac.net + +.PHONY: uninstall_crontab +uninstall_crontab: + sudo rm -f /etc/periodic/daily/joeac.net + +/etc/periodic/daily/joeac.net: + echo "#!/bin/sh" > crontab.tmp + echo "git -C /usr/local/lib/joeac.net pull && $(MAKE) --directory /usr/local/lib/joeac.net && rc-service joeac.net restart" \ + >> crontab.tmp + sudo mv crontab.tmp /etc/periodic/daily/joeac.net + sudo chmod +x /etc/periodic/daily/joeac.net + |
