- fixed php.ini location
authordjurban <djurban@pld-linux.org>
Sun, 15 Jun 2003 13:45:20 +0000 (13:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ZendGuardLoader.spec -> 1.9

ZendGuardLoader.spec

index fdb9d4c..0cfc360 100644 (file)
@@ -30,22 +30,22 @@ install ZendOptimizer.so $RPM_BUILD_ROOT/%{_libdir}/apache/php/
 rm -rf $RPM_BUILD_ROOT
 
 %preun
-if [ -f /etc/httpd/php.ini ]; then
+if [ -f /etc/php/php.ini ]; then
         echo "deactivating module 'ZendOptimizer.so' in php.ini" 1>&2
    perl -pi -e 's|^zend_optimizer.optimization_level|;zend_optimizer.optimization_level|g' \
-   /etc/httpd/php.ini
+   /etc/php/php.ini
    perl -pi -e 's|^zend_extension=/usr/lib/apache/php/ZendOptimizer.so"|;zend_extension="/usr/lib/apache/php/ZendOptimizer.so"|g' \
-   /etc/httpd/php.ini
+   /etc/php/php.ini
 
 fi
 
 %post
-if [ -f /etc/httpd/php.ini ]; then
+if [ -f /etc/php/php.ini ]; then
         echo "activating module 'ZendOptimizer.so' in php.ini" 1>&2
    perl -pi -e 's|^;zend_optimizer.optimization_level|zend_optimizer.optimization_level|g' \
-   /etc/httpd/php.ini
+   /etc/php/php.ini
    perl -pi -e 's|^;zend_extension="/usr/lib/apache/php/ZendOptimizer.so"|zend_extension="/usr/lib/apache/php/ZendOptimizer.so"|g' \
-   /etc/httpd/php.ini
+   /etc/php/php.ini
 fi
 if [ -f /var/lock/subsys/httpd ]; then
         /etc/rc.d/init.d/httpd restart 1>&2
This page took 0.048286 seconds and 4 git commands to generate.