Browse Source

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/master
Peter Lemenkov 12 years ago
parent
commit
fcc33339e4
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      el/mediaproxy-ng.spec

+ 4
- 2
el/mediaproxy-ng.spec View File

@ -128,8 +128,10 @@ true
%preun %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 %preun dkms


Loading…
Cancel
Save