]> git.pld-linux.org Git - packages/php.git/commitdiff
fixing fpm scriptlets
authorElan Ruusamäe <glen@delfi.ee>
Wed, 1 Aug 2012 23:57:06 +0000 (02:57 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 1 Aug 2012 23:57:17 +0000 (02:57 +0300)
php.spec

index df2438d8c5e1b57c4ce52878f8bc08b3964fff13..9621f48b14ebac41abce72cce1eafb8059c23298 100644 (file)
--- 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
This page took 0.062197 seconds and 4 git commands to generate.