summaryrefslogtreecommitdiff
path: root/support-files/debian/mysql-server.postrm
blob: d493a73a04a30fe09380a05d4ab35d6bc794a48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

update-alternatives --auto mysqld 

if [ "$1" = "purge" ]
then
	update-rc.d mysql remove >/dev/null

	echo -n "  Shall I also remove all of the databases (y/N)?"; read ans
	if [ "$ans" = "y" -o "$ans" = "Y" ]; then
		rm -rf /var/mysql
	fi
fi