explicitly enable and start php-fpm when the rpm is found
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 16 Feb 2018 13:05:46 +0000 (14:05 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 21 Feb 2018 10:52:28 +0000 (11:52 +0100)
myplc.spec

index 60a982c..c2b696d 100644 (file)
@@ -201,6 +201,7 @@ if [ -x /sbin/chkconfig ] ; then
     /sbin/chkconfig --add plc
     /sbin/chkconfig plc on
 fi
+rpm -q php-fpm >& /dev/null && { systemctl enable php-fpm; systemctl start php-fpm; }
 
 %triggerpostun -- %{name}
 # 0 = erase, 1 = upgrade