summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-09-27 13:20:00 +0200
committerSergei Golubchik <serg@mariadb.org>2019-09-27 13:20:11 +0200
commit677cc64428c0e6b0f596c6e861a5a0f7344078c6 (patch)
tree9bcd610ee7ac64809b9471cbbb83fcba20b57be0 /support-files
parent144217339d8dc2d6e00542cd25d97e39b90afa3f (diff)
downloadmariadb-git-677cc64428c0e6b0f596c6e861a5a0f7344078c6.tar.gz
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
Diffstat (limited to 'support-files')
-rw-r--r--support-files/rpm/server-preun.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/support-files/rpm/server-preun.sh b/support-files/rpm/server-preun.sh
index 1d733a7d899..038f601f43c 100644
--- a/support-files/rpm/server-preun.sh
+++ b/support-files/rpm/server-preun.sh
@@ -9,7 +9,7 @@ if [ $1 = 0 ] ; then
%{_sysconfdir}/init.d/mysql stop > /dev/null
fi
if [ -x /sbin/chkconfig ] ; then
- /sbin/chkconfig --del mysql > /dev/null 2>&1
+ /sbin/chkconfig --del mysql > /dev/null 2>&1 || :
fi
fi