Skip to content

Commit 92aea2e

Browse files
unknownunknown
authored andcommitted
Working uninstall confirmation
1 parent ec70dd5 commit 92aea2e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

install/uninstall.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434

3535
error_reporting(E_ALL|E_STRICT);
3636

37-
require_once "/usr/local/ispconfig/server/lib/config.inc.php";
38-
require_once "/usr/local/ispconfig/server/lib/app.inc.php";
37+
// This isnt needed until we decide to remove the ispconfig user from the database
38+
//require_once "/usr/local/ispconfig/server/lib/config.inc.php";
39+
//require_once "/usr/local/ispconfig/server/lib/app.inc.php";
3940

4041
//** The banner on the command line
4142
echo "\n\n".str_repeat('-', 80)."\n";
@@ -50,7 +51,12 @@
5051
echo "\n".str_repeat('-', 80)."\n";
5152
echo "\n\n>> Uninstall \n\n";
5253

53-
$do_uninstall = $inst->simple_query('Are you sure you want to uninsatll ISPConfig?', array('yes', 'no'), 'no');
54+
echo "Are you sure you want to uninsatll ISPConfig? [no]";
55+
$input = fgets(STDIN);
56+
$do_uninstall = rtrim($input);
57+
58+
echo "\n\n>> Uninstalling ISPConfig 3... \n\n";
59+
5460
if($do_uninstall == 'yes') {
5561

5662

0 commit comments

Comments
 (0)