[packages/php/PHP_5_2] fixing fpm scriptlets

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


commit 1bfb51ce13ecb404358a4c61a55b30e702f2496a
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 df2438d..9621f48 100644
--- a/php.spec
+++ b/php.spec
@@ -2560,13 +2560,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