mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
13 lines
253 B
Bash
13 lines
253 B
Bash
#!/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
|