Package: drupal5
Version: 5.3-1
Severity: normal
Tags: patch
/usr/share/drupal5/scripts/cron.sh doesn't use $base_url from
/etc/drupal5/sites/*/baseurl.php, if it's been set there. The following
fixes this:
$ diff -u debian/cron.sh{.old,}
--- debian/cron.sh.old 2007-10-31 15:57:20.000000000 +0000
+++ debian/cron.sh 2007-10-31 16:18:20.000000000 +0000
@@ -1,8 +1,11 @@
#!/bin/sh
# $Id: cron.sh 1755 2007-01-30 02:19:59Z luigi $
-for i in /etc/drupal/5/sites/*/settings.php ; do
- BASE_URL=`grep '^$base_url' $i | cut -d"'" -f2`
+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
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.18-5-xen-vserver-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages drupal5 depends on:
ii apache2-mpm-itk [httpd] 2.2.3-04-3+b5 multiuser MPM for Apache 2.2
ii curl 7.17.0-1 Get a file from an HTTP, HTTPS or
ii dbconfig-common 1.8.36 common framework for packaging dat
ii debconf 1.5.14 Debian configuration management sy
ii exim4 4.67-8 meta-package to ease Exim MTA (v4)
ii exim4-daemon-light [mail-t 4.67-8 lightweight Exim MTA (v4) daemon
ii mysql-client 5.0.45-1 MySQL database client (meta packag
ii mysql-client-5.0 [mysql-cl 5.0.45-1 MySQL database client binaries
ii php5 5.2.3-1 server-side, HTML-embedded scripti
ii php5-gd 5.2.3-1+b1 GD module for php5
ii php5-mysql 5.2.3-1+b1 MySQL module for php5
ii wwwconfig-common 0.0.48 Debian web auto configuration
Versions of packages drupal5 recommends:
pn mysql-server | postgresql <none> (no description available)
-- debconf information excluded
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]