This patch works great on my system and it would be a big help if this
could go forward. I've turned the above solution into a proper patch if
that helps at all.

-- 
Steve Pomeroy
http://staticfree.info/
--- cron.sh.orig	2008-05-05 12:11:30.000000000 -0400
+++ cron.sh	2008-05-05 12:11:21.000000000 -0400
@@ -1,17 +1,17 @@
 #!/bin/sh
 # $Id: cron.sh 1878 2008-02-12 10:56:45Z luigi $
 
+BASE_URL=""
 for site in /etc/drupal/5/sites/* ; do
-	BASE_URL=""
-
 	for file in $site/baseurl.php $site/settings.php; do
 		[ -f "$file" ] && BASE_URL=`grep '^$base_url' $file | cut -d"'" -f2`
 		[ "X$BASE_URL" != "X" ] && break
 	done
 
-	if [ "X$BASE_URL" = "X" ] ; then
-		BASE_URL='http://localhost/drupal5'
-	fi
-
 	curl --silent --compressed --location $BASE_URL/cron.php
 done
+
+# no site found with base_url - fall back to localhost (only once)
+if [ "X$BASE_URL" = "X" ] ; then
+	BASE_URL='http://localhost/drupal5'
+fi

Attachment: signature.asc
Description: Digital signature

Reply via email to