]> jfr.im git - erebus.git/commitdiff
make croncheck portable
authorzonidjan <redacted>
Mon, 28 Aug 2017 01:53:41 +0000 (20:53 -0500)
committerzonidjan <redacted>
Mon, 28 Aug 2017 01:53:41 +0000 (20:53 -0500)
croncheck.sh

index 4058c16c9736166be44cbae7a9930e7af3eeb759..77bdfa6ff505af71809de0eb6e2d2ad9f25fef59 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-cd /home/jrunyon/erebus
+cd "$(dirname $(readlink -f $0))"
 exec &>nohup.out
 
 if ! kill -0 "$(cat pidfile)"; then