change logdir to ../log, which should be a symlink to /var/log/irspy
authorWolfram Schneider <wosch@indexdata.dk>
Thu, 17 Jun 2010 21:25:36 +0000 (21:25 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Thu, 17 Jun 2010 21:25:36 +0000 (21:25 +0000)
bin/irspy-update.sh

index 5113d50..1c03eb7 100755 (executable)
@@ -7,10 +7,12 @@
 
 home=/usr/local/src/git
 cd $home/irspy/bin || exit 2
-logdir=../tmp
-lockfile=../tmp/irspy-update.lock
+logdir=../log
+lockfile=$logdir/irspy-update.lock
 : ${irspy_test=Main}
 
+mkdir -p $logdir || exit2
+
 if [ -f $lockfile ]; then
     pid=`cat $lockfile`
     if kill -0 $pid 2>/dev/null; then