summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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