do
echo "Removing Koha instance $name"
- mysql --defaults-extra-file=/etc/mysql/debian.cnf <<eof
-DROP USER 'koha_$name';
-DROP DATABASE koha_$name;
+ mysql --defaults-extra-file=/etc/mysql/koha-common.cnf <<eof
+DROP USER \`koha_$name\`;
+DROP DATABASE \`koha_$name\`;
FLUSH PRIVILEGES;
eof
+ koha-stop-zebra $name
rm "/etc/apache2/sites-available/$name"
rm "/etc/koha/sites/$name/koha-conf.xml"
rm "/etc/koha/sites/$name/zebra-biblios.cfg"