Commit 677cc644 authored by Sergei Golubchik's avatar Sergei Golubchik

chkconfig in RPM server scriptlets

chkconfig --add and --del [might] invoke /sbin/insserv
and even if chkconfig exists, insserv might not (SLES15).

Ignore chkconfig --del errors - it's a "best effort" cleanup anyway
parent 14421733
...@@ -9,7 +9,7 @@ if [ $1 = 0 ] ; then ...@@ -9,7 +9,7 @@ if [ $1 = 0 ] ; then
%{_sysconfdir}/init.d/mysql stop > /dev/null %{_sysconfdir}/init.d/mysql stop > /dev/null
fi fi
if [ -x /sbin/chkconfig ] ; then if [ -x /sbin/chkconfig ] ; then
/sbin/chkconfig --del mysql > /dev/null 2>&1 /sbin/chkconfig --del mysql > /dev/null 2>&1 || :
fi fi
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment