diff --git a/el/mediaproxy-ng.spec b/el/mediaproxy-ng.spec index ed8ae8489..bf8b7a158 100644 --- a/el/mediaproxy-ng.spec +++ b/el/mediaproxy-ng.spec @@ -128,8 +128,10 @@ true %preun -/sbin/service mediaproxy-ng stop -/sbin/chkconfig --del mediaproxy-ng +if [ $1 = 0 ] ; then + /sbin/service %{name} stop >/dev/null 2>&1 + /sbin/chkconfig --del %{name} +fi %preun dkms