diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-29 12:00:17 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-29 12:00:17 +0100 |
| commit | 74dc86d56c823b0c86e323000d168a9cd9988d0f (patch) | |
| tree | 7ffb301b79300a40134032370cd825f8c6f7d969 | |
| parent | 3e3c866ec0cd0958754a0212f5252d77faa9e0d1 (diff) | |
fixes /etc/periodic/daily/joeac.net in Makefile
| -rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |
