2008-07-20 Roland Mas <lolando@debian.org>
+ * etc/local.d/10database.env: Only call apache_request_headers
+ when available.
+
* common/reporting/ReportTrackerAct.class.php: Fixed off-by-one
bug in reports.
troubles (closes: #399671, #486845).
* Cleaned up the Apache configuration script to use the
sites-available/sites-enabled system (closes: #398885).
- * Fixed include_path for cron jobs.
+ * Fixed include_path and include files for cron jobs, so they are not
+ prevented from running (closes: #373557).
- -- Roland Mas <lolando@debian.org> Sun, 20 Jul 2008 18:15:12 +0200
+ -- Roland Mas <lolando@debian.org> Sun, 20 Jul 2008 18:33:46 +0200
gforge (4.6.99+svn6496-1) unstable; urgency=low
# Regular cron jobs for the gforge-db-postgresql package
#
-INCLUDE_PATH=/etc/gforge:/usr/share/gforge/:/usr/share/gforge/www
+INCLUDE_PATH=/etc/gforge:/usr/share/gforge/:/usr/share/gforge/www:/usr/share/gforge/common
# Daily reporting process
25 7 * * * gforge [ -x /usr/lib/gforge/bin/reporting_cron.php ] && /usr/lib/gforge/bin/reporting_cron.php -d include_path=$INCLUDE_PATH > /dev/null 2>&1
# Regular cron jobs for the gforge-ftp-proftpd package
#
+INCLUDE_PATH=/etc/gforge:/usr/share/gforge/:/usr/share/gforge/www:/usr/share/gforge/common
+
# FTP update
0 * * * * root [ -x /usr/lib/gforge/bin/install-ftp.sh ] && /usr/lib/gforge/bin/install-ftp.sh update > /dev/null 2>&1
# create and mount project directory in user's home directory
-0 * * * * root [ -x /usr/lib/gforge/bin/ftp_create_group_access.php ] && /usr/bin/php5 -d include_path=/etc/gforge:/usr/share/gforge/:/usr/share/gforge/www /usr/lib/gforge/bin/ftp_create_group_access.php > /dev/null 2>&1
\ No newline at end of file
+0 * * * * root [ -x /usr/lib/gforge/bin/ftp_create_group_access.php ] && /usr/bin/php5 -d include_path=$INCLUDE_PATH /usr/lib/gforge/bin/ftp_create_group_access.php > /dev/null 2>&1
\ No newline at end of file
# Regular cron jobs for gforge-plugin-scmcvs
#
-INCLUDE_PATH=/etc/gforge:/usr/share/gforge/:/usr/share/gforge/www
+INCLUDE_PATH=/etc/gforge:/usr/share/gforge/:/usr/share/gforge/www:/usr/share/gforge/common
# Tarballs
5 2 * * * root [ -x /usr/share/gforge/plugins/scmcvs/cronjobs/tarballs.php ] && php -d include_path=$INCLUDE_PATH /usr/share/gforge/plugins/scmcvs/cronjobs/tarballs.php > /dev/null 2>&1
# Regular cron jobs for the gforge-plugins scmsvn
#
-INCLUDE_PATH=/etc/gforge:/usr/share/gforge/:/usr/share/gforge/www
+INCLUDE_PATH=/etc/gforge:/usr/share/gforge/:/usr/share/gforge/www:/usr/share/gforge/common
# Tarballs
5 2 * * * root [ -x /usr/share/gforge/plugins/scmsvn/cronjobs/tarballs.php ] && php -d include_path=$INCLUDE_PATH /usr/share/gforge/plugins/scmsvn/cronjobs/tarballs.php > /dev/null 2>&1
$sys_database_type='pgsql';
-$headers = apache_request_headers() ;
+if (function_exists ('apache_request_headers')) {
+ $headers = apache_request_headers() ;
+}
// Databases, html/php/other paths, passwords
if (getenv ('SERVER_SOFTWARE')) { // We're on the web
ob_start("ob_gzhandler");
}
+require_once 'env.inc.php' ;
require $gfcgfile;
require $gfcommon.'include/constants.php';
require_once $gfcommon.'include/database-'.$sys_database_type.'.php';