https://bugzilla.novell.com/show_bug.cgi?id=680399
https://bugzilla.novell.com/show_bug.cgi?id=680399#c1
Christian Boltz changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |suse-beta@cboltz.de
AssignedTo|bnc-team-apache@forge.provo |crrodriguez@opensuse.org
|.novell.com |
--- Comment #1 from Christian Boltz 2011-07-14 23:05:25 CEST ---
It would be even better to read TIMEZONE from /etc/sysconfig/clock (in %post)
and use that in the PHP config.
To avoid overwriting manual changes, the packaged php.ini should have a special
marker that is replaced in %post, for example
date.timezone = 'SET_IN_POSTINSTALL'
which can then be replaced with (untested!)
sed -i "/^date\.timezone =/ s¿SET_IN_POSTINSTALL¿$TIMETONE¿" \
etc/php5/apache2/php.ini
# same for cli/php.ini
Notes:
- $TIMEZONE usually contains a slash, therefore I'm using ¿ as separator
- I intentionally used "etc/..." instead of "/etc/..." - IIRC this should make
it working in in normal and --root'ed installations (untested!)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.