summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-29 12:00:17 +0100
committerJoe Carstairs <me@joeac.net>2026-06-29 12:00:17 +0100
commit74dc86d56c823b0c86e323000d168a9cd9988d0f (patch)
tree7ffb301b79300a40134032370cd825f8c6f7d969
parent3e3c866ec0cd0958754a0212f5252d77faa9e0d1 (diff)
fixes /etc/periodic/daily/joeac.net in Makefile
-rw-r--r--Makefile6
1 files 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