From 0487944de3bcd172c4502d7a0de0b70c6be952b1 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Tue, 9 Apr 2013 16:47:04 +0200 Subject: [PATCH] [fix] bad option path --- bin/thumb_server.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/thumb_server.sh b/bin/thumb_server.sh index 7584a76..42009f5 100755 --- a/bin/thumb_server.sh +++ b/bin/thumb_server.sh @@ -8,7 +8,7 @@ hashUrl=$2 # hash(url) is the name of final image thumbSize=$3 # size of thumb widthxheight ex : 190x90 onlyThumb=$4 # make only thumbshot no full size image waitForResult=$5 # if true we try to make soon as possible or add to queue -maxThread=3 # max parralle work. For me the best is nb core - 1 +maxThread=1 # max parralle work. For me the best is nb core - 1 timeOut=60 # default time out after this time the site are declared in error log=false # log all generation success and error randomSleep=`echo $((RANDOM%20))` @@ -20,9 +20,9 @@ secondLevel=${hashUrl:2:2} startPath=$firstLevel/$secondLevel/ mkdir -p "cache/img/$startPath" -if [ ! -f "cache/config/serverOptions.php" ] +if [ -f "../cache/config/serverOptions.php" ] then - source "cache/config/serverOptions.php" + source "../cache/config/serverOptions.php" fi if [ $currentProcess -gt $maxQueue ]