From 0e65d7c550fc011e4cd99cc2f87beba721413ab7 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 16 Feb 2018 14:05:46 +0100 Subject: [PATCH] explicitly enable and start php-fpm when the rpm is found --- myplc.spec | 1 + 1 file changed, 1 insertion(+) 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 -- 2.43.0