Browse Source

Fix %post/%preun directives.

Fix %post/%preun directives. Because of incorrect service name (%{name} == ngcp-rtpengine, service name == rtpengine) there are errors when install or delete RPM.
pull/56/head
Sergey Lavrov 11 years ago
parent
commit
bb14eba603
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      el/rtpengine.spec

+ 3
- 3
el/rtpengine.spec View File

@ -97,7 +97,7 @@ rm -rf %{buildroot}
%post
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add %{name} || :
/sbin/chkconfig --add rtpengine || :
fi
@ -111,8 +111,8 @@ true
%preun
if [ $1 = 0 ] ; then
/sbin/service %{name} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}
/sbin/service rtpengine stop >/dev/null 2>&1
/sbin/chkconfig --del rtpengine
fi


Loading…
Cancel
Save