From a6f13bafa3bd1f02c09e60a8e8fff0f2118d4789 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 17 Jun 2010 21:25:36 +0000 Subject: [PATCH] change logdir to ../log, which should be a symlink to /var/log/irspy --- bin/irspy-update.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/irspy-update.sh b/bin/irspy-update.sh index 5113d50..1c03eb7 100755 --- a/bin/irspy-update.sh +++ b/bin/irspy-update.sh @@ -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 -- 1.7.10.4