Stop service and remove SysV symling only during uninstall

See also:

https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Syntax

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
git.mgm/mediaproxy-ng/mr3.2.1
Peter Lemenkov 11 years ago
parent 5a327261b2
commit fcc33339e4

@ -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

Loading…
Cancel
Save