summaryrefslogtreecommitdiff
path: root/support-files/rpm/server-preun.sh
blob: 7ef48f1c8d4f239b0bb97bb88de29a2ad00772f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if [ $1 = 0 ] ; then
	# Stop MySQL before uninstalling it
	if [ -x %{_sysconfdir}/init.d/mysql ] ; then
		%{_sysconfdir}/init.d/mysql stop > /dev/null
	fi
        # Don't start it automatically anymore
	if [ -x /sbin/chkconfig ] ; then
		/sbin/chkconfig --del mysql
	fi
fi

# We do not remove the mysql user since it may still own a lot of
# database files.