# HG changeset patch # User Matthias Förste # Date 1410163922 -7200 # Node ID 0f5276b4ee4b4fcbe20a533bc78a1a2c8a8df5a9 # Parent 25b7cc70694c4828ef4391ec7d9a7b510587a117 use full path in crontab because the script is not installed in the cron PATH diff -r 25b7cc70694c -r 0f5276b4ee4b Makefile --- 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 >$@ diff -r 25b7cc70694c -r 0f5276b4ee4b verify-drbd.cron --- 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 diff -r 25b7cc70694c -r 0f5276b4ee4b verify-drbd.cron.template --- /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