[packages/php/PHP_5_3] setup timezone in %posttrans, not %post
glen
glen at pld-linux.org
Tue Oct 4 14:39:17 CEST 2016
commit 0e136ae8da02fbed48ec2ebc8b06ebb090f27e2a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Oct 4 15:38:32 2016 +0300
setup timezone in %posttrans, not %post
this ensures that php.ini timezone is actually set if php and tzdata
pacakge are installed in same transaction
php.spec | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/php.spec b/php.spec
index 3f61b1b..8f9333c 100644
--- a/php.spec
+++ b/php.spec
@@ -2761,7 +2761,7 @@ fi
%post embedded -p /sbin/ldconfig
%postun embedded -p /sbin/ldconfig
-%post common
+%posttrans common
# PHP 5.3 requires timezone being setup, try setup it from tzdata
if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
TIMEZONE=
@@ -2771,7 +2771,6 @@ if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/s
fi
fi
-%posttrans common
# minimizing apache restarts logics. we restart webserver:
#
# 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/2e931bc3dcb4fca0211b733d388434f798a8e3d7
More information about the pld-cvs-commit
mailing list