mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 18:25:30 +02:00
support-files/mysql.spec.sh
Fix a possible problem on RPM un-install. bug#15145 support-files/mysql.spec.sh: Extend the file existence check for "init.d/mysql" on un-install to also guard the call to "insserv"/"chkconfig". bug#15145, br#5369 / 5586, csc#7129
This commit is contained in:
parent
f76ff56512
commit
6a6caf565d
1 changed files with 17 additions and 12 deletions
|
|
@ -487,22 +487,22 @@ echo "Restarting mysqld."
|
||||||
%preun server
|
%preun server
|
||||||
if test $1 = 0
|
if test $1 = 0
|
||||||
then
|
then
|
||||||
# Stop MySQL before uninstalling it
|
# Stop MySQL before uninstalling it
|
||||||
if test -x %{_sysconfdir}/init.d/mysql
|
if test -x %{_sysconfdir}/init.d/mysql
|
||||||
then
|
then
|
||||||
%{_sysconfdir}/init.d/mysql stop > /dev/null
|
%{_sysconfdir}/init.d/mysql stop > /dev/null
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove autostart of mysql
|
# Remove autostart of mysql
|
||||||
# for older SuSE Linux versions
|
# for older SuSE Linux versions
|
||||||
if test -x /sbin/insserv
|
if test -x /sbin/insserv
|
||||||
then
|
then
|
||||||
/sbin/insserv -r %{_sysconfdir}/init.d/mysql
|
/sbin/insserv -r %{_sysconfdir}/init.d/mysql
|
||||||
# use chkconfig on Red Hat and newer SuSE releases
|
# use chkconfig on Red Hat and newer SuSE releases
|
||||||
elif test -x /sbin/chkconfig
|
elif test -x /sbin/chkconfig
|
||||||
then
|
then
|
||||||
/sbin/chkconfig --del mysql
|
/sbin/chkconfig --del mysql
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# We do not remove the mysql user since it may still own a lot of
|
# We do not remove the mysql user since it may still own a lot of
|
||||||
|
|
@ -689,6 +689,11 @@ fi
|
||||||
# itself - note that they must be ordered by date (important when
|
# itself - note that they must be ordered by date (important when
|
||||||
# merging BK trees)
|
# merging BK trees)
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
|
||||||
|
|
||||||
|
- Extend the file existence check for "init.d/mysql" on un-install
|
||||||
|
to also guard the call to "insserv"/"chkconfig".
|
||||||
|
|
||||||
* Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
|
* Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
|
||||||
|
|
||||||
- added more man pages
|
- added more man pages
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue