git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0e65d7c
)
better handling of the php-fpm dependency
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Thu, 22 Feb 2018 07:56:44 +0000
(08:56 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Thu, 22 Feb 2018 07:56:44 +0000
(08:56 +0100)
myplc.spec
patch
|
blob
|
history
diff --git
a/myplc.spec
b/myplc.spec
index
c2b696d
..
2806623
100644
(file)
--- a/
myplc.spec
+++ b/
myplc.spec
@@
-57,6
+57,10
@@
Requires: cronie
%if "%{distro}" == "Fedora" && %{distrorelease} >= 16
Requires: rpm-sign
%endif
%if "%{distro}" == "Fedora" && %{distrorelease} >= 16
Requires: rpm-sign
%endif
+# starting with f27 we depend on this new rpm
+%if "%{distro}" == "Fedora" && %{distrorelease} >= 27
+Requires: php-fpm
+%endif
# planetlab stuff
Requires: bootmanager
# planetlab stuff
Requires: bootmanager
@@
-201,7
+205,11
@@
if [ -x /sbin/chkconfig ] ; then
/sbin/chkconfig --add plc
/sbin/chkconfig plc on
fi
/sbin/chkconfig --add plc
/sbin/chkconfig plc on
fi
-rpm -q php-fpm >& /dev/null && { systemctl enable php-fpm; systemctl start php-fpm; }
+
+%if "%{distro}" == "Fedora" && %{distrorelease} >= 27
+systemctl enable php-fpm
+systemctl start php-fpm
+%endif
%triggerpostun -- %{name}
# 0 = erase, 1 = upgrade
%triggerpostun -- %{name}
# 0 = erase, 1 = upgrade