File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3636
3737require_once "/usr/local/ispconfig/server/lib/config.inc.php " ;
3838require_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
4242echo "\n\n" .str_repeat ('- ' , 80 )."\n" ;
5151echo "\n" .str_repeat ('- ' , 80 )."\n" ;
5252echo "\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
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 );
You can’t perform that action at this time.
0 commit comments