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 12 years ago
parent 9c01e70781
commit bb14eba603

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

Loading…
Cancel
Save