Merge remote-tracking branch 'kc/new/bug_6351' into kcmaster
[koha_fer] / debian / scripts / koha-remove
index 7b4a19e..10a8b78 100755 (executable)
@@ -24,12 +24,13 @@ for name in "$@"
 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"