[Dehs-devel] r138 - trunk

atomo64-guest at alioth.debian.org atomo64-guest at alioth.debian.org
Sun Jun 1 23:13:31 UTC 2008


Author: atomo64-guest
Date: 2008-06-01 23:13:30 +0000 (Sun, 01 Jun 2008)
New Revision: 138

Modified:
   trunk/dehs.sh
Log:
Do not try to update the web pages more than 50 times


Modified: trunk/dehs.sh
===================================================================
--- trunk/dehs.sh	2008-05-30 19:40:13 UTC (rev 137)
+++ trunk/dehs.sh	2008-06-01 23:13:30 UTC (rev 138)
@@ -82,9 +82,11 @@
 	$WORKDIR/dehs_pg.php $rt >$WORKDIR/logs/stdout.log
 done
 
+c=0
 if [ $update_www -gt 0 ]; then
-	while ! $WORKDIR/update_wwwal.sh >/dev/null; do
+	while ! $WORKDIR/update_wwwal.sh >/dev/null && [ $c -lt 50 ]; do
 		sleep 5
+		((c++))
 	done
 fi
 




More information about the Dehs-devel mailing list