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 ]