Package: drupal7 Version: 7.6-1 Severity: normal Tags: patch
-- System Information: Debian Release: 6.0.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages drupal7 depends on: ii apache2 2.2.16-6+squeeze1 Apache HTTP Server metapackage ii apache2-mpm-prefork [h 2.2.16-6+squeeze1 Apache HTTP Server - traditional n ii curl 7.21.0-2 Get a file from an HTTP, HTTPS or ii dbconfig-common 1.8.46+squeeze.0 common framework for packaging dat ii debconf [debconf-2.0] 1.5.36.1 Debian configuration management sy ii exim4-daemon-light [ma 4.72-6+squeeze2 lightweight Exim MTA (v4) daemon ii mysql-client-5.1 [virt 5.1.49-3 MySQL database client binaries ii php5 5.3.3-7+squeeze3 server-side, HTML-embedded scripti ii php5-gd 5.3.3-7+squeeze3 GD module for php5 ii php5-mysql 5.3.3-7+squeeze3 MySQL module for php5 ii wwwconfig-common 0.2.1 Debian web auto configuration Versions of packages drupal7 recommends: ii mysql-server 5.1.49-3 MySQL database server (metapackage ii mysql-server-5.1 [mysql-serve 5.1.49-3 MySQL database server binaries and drupal7 suggests no packages. -- debconf information excluded -- debsums errors found: debsums: changed file /usr/share/drupal7/scripts/cron.sh (from drupal7 package) According to INSTALL.txt (not included in the Debian package), cron.php now has to be called with a cron_key parameter: http://example.com/cron.php?cron_key=YOURKEY The key can be found within the Drupal site itself on the Status report page. I'll include a patch that requires the cron_key to be set in either a separate cronkey.php or in settings.php for each configured site (as is the case with base_url now). hop
--- cron.sh 2011-08-26 18:39:14.000000000 +0200 +++ cron.sh.fixed 2011-08-26 18:38:49.000000000 +0200 @@ -10,10 +10,15 @@ [ "X$BASE_URL" != "X" ] && break done + for file in $site/cronkey.php $site/settings.php; do + [ -f "$file" ] && CRON_KEY=`grep '^$cron_key' $file | cut -d"'" -f2` + [ "X$CRON_KEY" != "X" ] && break + done + if [ "X$BASE_URL" = "X" ] ; then BASE_URL='http://localhost/drupal7' fi - curl --fail --silent --compressed --location $BASE_URL/cron.php + curl --fail --silent --compressed --location $BASE_URL/cron.php?cron_key=$CRON_KEY fi done