use full path in crontab because the script is not installed in the cron PATH
authorMatthias Förste <foerste@schlittermann.de>
Mon, 08 Sep 2014 10:12:02 +0200
changeset 5 0f5276b4ee4b
parent 4 25b7cc70694c
child 6 e30f3866d958
use full path in crontab because the script is not installed in the cron PATH
Makefile
verify-drbd.cron
verify-drbd.cron.template
--- a/Makefile	Tue Aug 12 15:23:13 2014 +0200
+++ b/Makefile	Mon Sep 08 10:12:02 2014 +0200
@@ -25,3 +25,6 @@
 	@$(SH) -n $<
 	@cp $< $@
 	@chmod a=rx $@
+
+.cron:
+	sed 's|#sbindir#|$(sbindir)|' $<.template >$@
--- a/verify-drbd.cron	Tue Aug 12 15:23:13 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-# you may need to add the script location to your PATH
-57  0   * * 6   root    if [ $(date +\%d) -le 7 ]; then verify-drbd; fi
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/verify-drbd.cron.template	Mon Sep 08 10:12:02 2014 +0200
@@ -0,0 +1,1 @@
+57  0   * * 6   root    if [ $(date +\%d) -le 7 ]; then #sbindir#/verify-drbd; fi