Skip to content

Commit 0af1840

Browse files
committed
MDEV-19706 RPM no longer installs init script on systemd systems, but preun script still tries to erase it
1 parent 27fcdb1 commit 0af1840

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

support-files/rpm/server-preun.sh

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

0 commit comments

Comments
 (0)