newordersuggestion would not filter by status
[koha-ffzg.git] / debian / scripts / koha-remove
index 7b4a19e..97399cc 100755 (executable)
@@ -24,12 +24,13 @@ for name in "$@"
 do
     echo "Removing Koha instance $name"
 
-    mysql --defaults-extra-file=/etc/mysql/debian.cnf <<eof
+    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"