[Pkg-drupal-commits] r1878 - in /branches/drupal-5.0/debian: changelog cron.sh
luigi at users.alioth.debian.org
luigi at users.alioth.debian.org
Tue Feb 12 10:56:45 UTC 2008
Author: luigi
Date: Tue Feb 12 10:56:45 2008
New Revision: 1878
URL: http://svn.debian.org/wsvn/pkg-drupal/?sc=1&rev=1878
Log:
Fixed cron script for multisite setup (thanks to Fernando Lucas Rodriguez) (Closes: #464599)
Modified:
branches/drupal-5.0/debian/changelog
branches/drupal-5.0/debian/cron.sh
Modified: branches/drupal-5.0/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-drupal/branches/drupal-5.0/debian/changelog?rev=1878&op=diff
==============================================================================
--- branches/drupal-5.0/debian/changelog (original)
+++ branches/drupal-5.0/debian/changelog Tue Feb 12 10:56:45 2008
@@ -9,6 +9,10 @@
* debian/po/hu.po
- Updated Hungarian debconf templates translation (Thanks to Miklos
Lukacs) (Closes: #459378)
+
+ * debian/cron.sh
+ - Fixed cron script for multisite setup (thanks to Fernando Lucas
+ Rodriguez) (Closes: #464599)
-- Luigi Gangitano <luigi at debian.org> Tue, 12 Feb 2008 11:40:29 +0100
Modified: branches/drupal-5.0/debian/cron.sh
URL: http://svn.debian.org/wsvn/pkg-drupal/branches/drupal-5.0/debian/cron.sh?rev=1878&op=diff
==============================================================================
--- branches/drupal-5.0/debian/cron.sh (original)
+++ branches/drupal-5.0/debian/cron.sh Tue Feb 12 10:56:45 2008
@@ -2,13 +2,16 @@
# $Id$
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 $BASE_URL/cron.php
+
+ curl --silent --compressed --location $BASE_URL/cron.php
done
-
More information about the Pkg-drupal-commits
mailing list