[fix] bad option path

This commit is contained in:
Knah Tsaeb 2013-04-09 16:47:04 +02:00
parent 58c2d9d4e9
commit 0487944de3
1 changed files with 3 additions and 3 deletions

View File

@ -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 ]