summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-06-07 20:04:09 +0200
committerSergei Golubchik <serg@mariadb.org>2019-06-11 22:11:06 +0200
commit0af1840892fd5c8d49ff2935b7169556a5e4a4d1 (patch)
treec876c6e87606f436d37c2401a23a592bcfd1ab12 /support-files
parent27fcdb161c8bb1fd21d2706ba17a3326f8221b9c (diff)
downloadmariadb-git-0af1840892fd5c8d49ff2935b7169556a5e4a4d1.tar.gz
MDEV-19706 RPM no longer installs init script on systemd systems, but preun script still tries to erase it
Diffstat (limited to 'support-files')
-rw-r--r--support-files/rpm/server-preun.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/support-files/rpm/server-preun.sh b/support-files/rpm/server-preun.sh
index 1d733a7d899..f4eb81a7f75 100644
--- a/support-files/rpm/server-preun.sh
+++ b/support-files/rpm/server-preun.sh
@@ -7,9 +7,9 @@ if [ $1 = 0 ] ; then
fi
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
%{_sysconfdir}/init.d/mysql stop > /dev/null
- fi
- if [ -x /sbin/chkconfig ] ; then
- /sbin/chkconfig --del mysql > /dev/null 2>&1
+ if [ -x /sbin/chkconfig ] ; then
+ /sbin/chkconfig --del mysql > /dev/null 2>&1
+ fi
fi
fi