Hi, please re-open the bug - the patched version contains unnecessary code (see attachment).
Thanks,
Gebhard
--- cron.sh.orig	2008-06-13 20:10:47.000000000 +0200
+++ cron.sh	2008-06-13 20:04:51.000000000 +0200
@@ -1,22 +1,16 @@
 #!/bin/sh
-# $Id: cron.sh 1887 2008-06-02 17:30:41Z luigi $
-
-BASE_URL=""
-
+# $Id: cron.sh 1878 2008-02-12 10:56:45Z luigi $
 for site in /etc/drupal/5/sites/* ; do
-	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
+   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
+   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
    curl --silent --compressed --location http://localhost/drupal5/cron.php
 fi
+

Reply via email to