From c842a5f6f47dc701c1c877d649258bb85be57536 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Mon, 29 Jul 2013 10:08:51 +0200 Subject: [PATCH 1/2] [fix] script not working on Ubuntu 12.04 --- bin/cronTask.sh.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cronTask.sh.sample b/bin/cronTask.sh.sample index 1a69619..3a9a902 100644 --- a/bin/cronTask.sh.sample +++ b/bin/cronTask.sh.sample @@ -14,7 +14,7 @@ fi for file in $tempDest*.hash do - if [[ -f $file ]]; + if [ -f $file ]; then while read urlHash url destination do From 5dd151ca6dfffdfb6ac2a61d48bb93854935eee7 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Mon, 29 Jul 2013 10:21:40 +0200 Subject: [PATCH 2/2] [fix] bad detection of other instance of cronTask --- bin/cronTask.sh.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cronTask.sh.sample b/bin/cronTask.sh.sample index 3a9a902..d38d439 100644 --- a/bin/cronTask.sh.sample +++ b/bin/cronTask.sh.sample @@ -4,7 +4,7 @@ tempDest=/path/of/sovigall/tmp/ threads=3 # nb cpu core - 1 cd $tempDest -nbProcessLauch=$(ps -e | grep -v grep | grep youtube-dl | wc -l) +nbProcessLauch=$(ps -ef | grep -v grep | grep youtube-dl | wc -l) if [ $nbProcessLauch != 0 ] then