From 74dc86d56c823b0c86e323000d168a9cd9988d0f Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Mon, 29 Jun 2026 12:00:17 +0100 Subject: [PATCH] fixes /etc/periodic/daily/joeac.net in Makefile --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 86996e7..992bc8d 100644 --- a/Makefile +++ b/Makefile @@ -158,9 +158,11 @@ uninstall_crontab: sudo rm -f /etc/periodic/daily/joeac.net /etc/periodic/daily/joeac.net: - echo "@daily $(shell whoami) git -C /usr/local/lib/joeac.net pull && $(MAKE) --directory /usr/local/lib/joeac.net && rc-service joeac.net restart" \ - > crontab.tmp + 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 .PHONY: install_dyndns install_dyndns: /usr/local/bin/dyndns.sh ~/.config/dyndns/DIGITALOCEAN_TOKEN