From: Thierry Parmentelat Date: Fri, 16 Feb 2018 13:05:46 +0000 (+0100) Subject: explicitly enable and start php-fpm when the rpm is found X-Git-Tag: myplc-5.3-5~15 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=0e65d7c550fc011e4cd99cc2f87beba721413ab7 explicitly enable and start php-fpm when the rpm is found --- diff --git a/myplc.spec b/myplc.spec index 60a982c..c2b696d 100644 --- a/myplc.spec +++ b/myplc.spec @@ -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