Skip to content

Commit c51b57e

Browse files
author
Florian Schaal
committed
fixed uninstaller
1 parent 7d6777c commit c51b57e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install/uninstall.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
require_once "/usr/local/ispconfig/server/lib/config.inc.php";
3838
require_once "/usr/local/ispconfig/server/lib/app.inc.php";
39-
require "/usr/local/ispconfig/server/mysql_clientdb.conf";
39+
require "/usr/local/ispconfig/server/lib/mysql_clientdb.conf";
4040

4141
//** The banner on the command line
4242
echo "\n\n".str_repeat('-', 80)."\n";
@@ -51,7 +51,7 @@
5151
echo "\n".str_repeat('-', 80)."\n";
5252
echo "\n\n>> Uninstall \n\n";
5353

54-
echo "Are you sure you want to uninsatll ISPConfig? [no]";
54+
echo "Are you sure you want to uninstall ISPConfig? [no]";
5555
$input = fgets(STDIN);
5656
$do_uninstall = rtrim($input);
5757

@@ -62,11 +62,11 @@
6262

6363
$link = mysqli_connect($clientdb_host, $clientdb_user, $clientdb_password);
6464
if (!$link) {
65-
echo "Unable to connect to the database'.mysql_error($link)";
65+
echo "Unable to connect to the database. mysql_error($link)";
6666
} else {
67-
$result=mysqli_query($link,"DROP DATABASE ".$conf['db_database']."';");
67+
$result=mysqli_query($link,"DROP DATABASE ".$conf['db_database'].";");
6868
if (!$result) echo "Unable to remove the ispconfig-database ".$conf['db_database']." ".mysqli_error($link)."\n";
69-
$result=mysqli_query($link,"DROP USER '".$conf['db_user'] ."';");
69+
$result=mysqli_query($link,"DROP USER '".$conf['db_user']."'@'".$conf['db_host']."';");
7070
if (!$result) echo "Unable to remove the ispconfig-database-user ".$conf['db_user']." ".mysqli_error($link)."\n";
7171
}
7272
mysqli_close($link);

0 commit comments

Comments
 (0)