Author: ralfbecker
New Revision: 39489
URL: http://svn.stylite.de/viewvc/egroupware?rev=39489&view=rev
Log:
moved to setup-cli, as post_install does not use date, but setup-cli does and ini_set does not work accross processes
Modified:
branches/1.8/egroupware/doc/rpm-build/post_install.php
branches/1.8/setup/setup-cli.php
— branches/1.8/egroupware/doc/rpm-build/post_install.php (original)
+++ branches/1.8/egroupware/doc/rpm-build/post_install.php Wed Jun 13 15:46:42 2012
@@ -75,14 +75,6 @@
}
$config[‘source_dir’] = dirname(dirname(dirname(FILE)));
-// check if date.timezone is set, report it and set something if not, as it gives tons of errors in install log
-if (!ini_get(‘date.timezone’))
-{
- if (!($tz = date_default_timezone_get())) $tz = ‘UTC’;
- echo “No default timezone (php.ini date.timezone) set, we temporary set ‘$tz’. You should fix that permanent!\n”;
- ini_set(‘date.timezone’,$tz);
-}
-
/**
- Set distribution spezific defaults
-
— branches/1.8/setup/setup-cli.php (original)
+++ branches/1.8/setup/setup-cli.php Wed Jun 13 15:46:42 2012
@@ -37,6 +37,14 @@
{
ini_set(‘session.save_path’,’/tmp’); // regular users may have no rights to apache’s session dir
}
+// check if date.timezone is set, report it and set something if not, as it gives tons of errors in install log
+if (!ini_get(‘date.timezone’))
+{
- if (!($tz = date_default_timezone_get())) $tz = ‘UTC’;
- echo “No default timezone (php.ini date.timezone) set, we temporary set ‘$tz’. You should fix that permanent!\n”;
- ini_set(‘date.timezone’,$tz);
+}
-
// setting up the $GLOBALS[‘egw_setup’] object AND including the header.inc.php if it exists
include(‘inc/functions.inc.php’);
$GLOBALS[‘egw_info’][‘flags’][‘no_exception_handler’] = ‘cli’; // inc/functions.inc.php does NOT set it
Live Security Virtual Conference
Exclusive live event will cover all the ways today’s security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs