[packages/php/PHP_5_4] fixing fpm scriptlets

glen glen at pld-linux.org
Thu Aug 2 01:57:32 CEST 2012


commit ff9cec3fa3fdaf4c38db54fe9f14e8547223c7a9
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Aug 2 02:57:06 2012 +0300

    fixing fpm scriptlets

 php.spec | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/php.spec b/php.spec
index 1898ea2..9a4bdf0 100644
--- a/php.spec
+++ b/php.spec
@@ -2519,13 +2519,13 @@ fi
 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
 
 %post fpm
-/sbin/chkconfig --add php-fpm
-%service php-fpm restart
+/sbin/chkconfig --add %{name}-fpm
+%service %{name}-fpm restart
 
 %preun fpm
 if [ "$1" = 0 ]; then
-	%service php-fpm stop
-	/sbin/chkconfig --del php-fpm
+	%service %{name}-fpm stop
+	/sbin/chkconfig --del %{name}-fpm
 fi
 
 %postun fpm


More information about the pld-cvs-commit mailing list