Skip to content

Commit 277d569

Browse files
committed
Fixed a bug in the uninstall script.
1 parent 83a707c commit 277d569

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

install/uninstall.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
require("/usr/local/ispconfig/server/lib/app.inc.php");
3333

3434
// Delete the ISPConfig database
35-
$app->db->query("DROP DATABASE '".$conf["db_database"]."'");
35+
// $app->db->query("DROP DATABASE '".$conf["db_database"]."'");
36+
exec("/etc/init.d/mysql stop");
37+
exec("rm -rf /var/lib/mysql/".$conf["db_database"]);
38+
exec("/etc/init.d/mysql start");
3639

3740
// Deleting the symlink in /var/www
3841
unlink("/var/www/ispconfig");

0 commit comments

Comments
 (0)