Package: drupal5
Version: 5.7-1
Severity: normal
Tags: patch

Hi

the cron script does more work than needed within multi side
configuration.

If you have configured several sites and have also non-site
directories like /etc/drupal/5/sites/all and /etc/drupal/5/sites/default
then the script /usr/share/drupal5/scripts/cron.sh will try to curl the
all and default 'sites' using the default localhost BASE_URL which normally 
won't
work or which normally does double work.

I'd suggest to take the default curl to the bottom of the script, e.g.:

----------------------------8<----------------------------
#!/bin/sh
# $Id: cron.sh 1878 2008-02-12 10:56:45Z luigi $
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
   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

----------------------------8<----------------------------


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (200, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.9-023stab044.16-enterprise
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.utf8)

Versions of packages drupal5 depends on:
ii  apache2                   2.2.3-4+etch4  Next generation, scalable, extenda
ii  apache2-mpm-prefork [http 2.2.3-4+etch4  Traditional model for Apache HTTPD
ii  courier-mta [mail-transpo 0.53.3-5       Courier Mail Server - ESMTP daemon
ii  curl                      7.15.5-1etch1  Get a file from an HTTP, HTTPS, FT
ii  dbconfig-common           1.8.29+etch1   common framework for packaging dat
ii  debconf                   1.5.11etch1    Debian configuration management sy
ii  mysql-client-5.0 [mysql-c 5.0.32-7etch5  mysql database client binaries
ii  php5                      5.2.0-8+etch10 server-side, HTML-embedded scripti
ii  php5-gd                   5.2.0-8+etch10 GD module for php5
ii  php5-mysql                5.2.0-8+etch10 MySQL module for php5
ii  wwwconfig-common          0.0.48         Debian web auto configuration

Versions of packages drupal5 recommends:
ii  mysql-server-5.0 [mysql-se 5.0.32-7etch5 mysql database server binaries

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to