[Blends-commit] [SCM] website branch, master, updated. 451ba1bc12324604c14f5e92f5a566c67dcef628
Andreas Tille
tille at debian.org
Fri Jan 10 08:31:06 UTC 2014
The following commit has been merged in the master branch:
commit 451ba1bc12324604c14f5e92f5a566c67dcef628
Author: Andreas Tille <tille at debian.org>
Date: Fri Jan 10 09:35:38 2014 +0100
If cronjob runs on blends.debian.org it needs to update the changes
diff --git a/webtools/check-all-tasks b/webtools/check-all-tasks
index 99c78cf..b343596 100755
--- a/webtools/check-all-tasks
+++ b/webtools/check-all-tasks
@@ -25,6 +25,8 @@ fi
cd `dirname $0`
+needsupdate=0
+
for bc in `ls webconf/*.conf | grep -v -e "webconf/fun\." -e rest-test` ; do
blend=`basename ${bc} .conf`
# echo "----- $blend ------"
@@ -82,11 +84,13 @@ for bc in `ls webconf/*.conf | grep -v -e "webconf/fun\." -e rest-test` ; do
cd $curdir
if ! ps aux | grep -v "0:0[0-9] grep " | grep -v "0:0[0-9] ps " | grep tasks.py ; then
./tasks.py ${blend}
+ needsupdate=1
else
echo "Script tasks.py seems to be running currently. No update."
fi
if ! ps aux | grep -v "0:0[0-9] grep " | grep -v "0:0[0-9] ps " | grep thermometer.py ; then
./thermometer.py ${blend}
+ needsupdate=1
else
echo "Script thermometer.py seems to be running currently. No update."
fi
@@ -96,3 +100,6 @@ for bc in `ls webconf/*.conf | grep -v -e "webconf/fun\." -e rest-test` ; do
cd $curdir
done
+if [ $needsupdate -eq 1 ] ; then
+ [ -x /usr/local/bin/static-update-component ] && /usr/local/bin/static-update-component blends.debian.org >/dev/null 2>/dev/null
+fi
--
Static and dynamic websites for Debian Pure Blends
More information about the Blends-commit
mailing list