Skip to content

Commit 677cc64

Browse files
committed
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
1 parent 1442173 commit 677cc64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support-files/rpm/server-preun.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ $1 = 0 ] ; then
99
%{_sysconfdir}/init.d/mysql stop > /dev/null
1010
fi
1111
if [ -x /sbin/chkconfig ] ; then
12-
/sbin/chkconfig --del mysql > /dev/null 2>&1
12+
/sbin/chkconfig --del mysql > /dev/null 2>&1 || :
1313
fi
1414
fi
1515

0 commit comments

Comments
 (0)