~ubuntu-branches/ubuntu/hardy/drupal5/hardy-security

« back to all changes in this revision

Viewing changes to debian/cron.sh

  • Committer: Bazaar Package Importer
  • Author(s): Emanuele Gentili
  • Date: 2008-02-13 18:37:02 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080213183702-0txo634fb8kyacst
Tags: 5.7-1ubuntu1
* Merge from debian unstable, remaining changes (LP: #191621):
  + debian/patches/02_htaccess:
    - Add RewriteBase /drupal5
  + debian/control:
    - Replace exim4 with postfix in Depends.
    - Modify Maintainer value to match DebianMaintainerField spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
# $Id: cron.sh 1841 2007-12-07 20:44:15Z luigi $
 
2
# $Id: cron.sh 1878 2008-02-12 10:56:45Z luigi $
3
3
 
4
4
for site in /etc/drupal/5/sites/* ; do
 
5
        BASE_URL=""
 
6
 
5
7
        for file in $site/baseurl.php $site/settings.php; do
6
8
                [ -f "$file" ] && BASE_URL=`grep '^$base_url' $file | cut -d"'" -f2`
7
9
                [ "X$BASE_URL" != "X" ] && break
8
10
        done
 
11
 
9
12
        if [ "X$BASE_URL" = "X" ] ; then
10
13
                BASE_URL='http://localhost/drupal5'
11
14
        fi
12
 
        curl --silent --compressed $BASE_URL/cron.php
 
15
 
 
16
        curl --silent --compressed --location $BASE_URL/cron.php
13
17
done
14