From 5bd502c72f79ebfb466c8378e48138596ff453fb Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 2 Jul 2026 09:39:10 +0100 Subject: better crontab with update.sh --- make/crontab.mk | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'make') diff --git a/make/crontab.mk b/make/crontab.mk index aab3285..8d801a9 100644 --- a/make/crontab.mk +++ b/make/crontab.mk @@ -8,10 +8,6 @@ reinstall_crontab: /etc/periodic/daily/joeac.net 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 +/etc/periodic/daily/joeac.net: update.sh + sudo cp update.sh /etc/periodic/daily/joeac.net sudo chmod +x /etc/periodic/daily/joeac.net - -- cgit v1.2.3