Marius Cramer
2013-11-22 ea1e356db36a35754f39e38f2d8af2f605576ce7
Merge branch 'master' of /home/git/repositories/RealOpty/ispconfig3
2 files modified
22 ■■■■ changed files
TODO.txt 4 ●●●● patch | view | raw | blame | history
install/uninstall.php 18 ●●●● patch | view | raw | blame | history
TODO.txt
@@ -14,6 +14,10 @@
- Add a function to let a server join a existing installation.
Uninstaller
--------------------------------------
- Add a function to remove ispconfig user
Server
--------------------------------------
install/uninstall.php
@@ -34,6 +34,9 @@
error_reporting(E_ALL|E_STRICT);
require_once "/usr/local/ispconfig/server/lib/config.inc.php";
require_once "/usr/local/ispconfig/server/lib/app.inc.php";
//** The banner on the command line
echo "\n\n".str_repeat('-', 80)."\n";
echo " _____ ___________   _____              __ _         ____
@@ -47,8 +50,14 @@
echo "\n".str_repeat('-', 80)."\n";
echo "\n\n>> Uninstall  \n\n";
require "/usr/local/ispconfig/server/lib/config.inc.php";
require "/usr/local/ispconfig/server/lib/app.inc.php";
echo "Are you sure you want to uninsatll ISPConfig? [no]";
$input = fgets(STDIN);
$do_uninstall = rtrim($input);
if($do_uninstall == 'yes') {
    echo "\n\n>> Uninstalling ISPConfig 3... \n\n";
// Delete the ISPConfig database
// $app->db->query("DROP DATABASE '".$conf["db_database"]."'");
@@ -76,7 +85,10 @@
exec('rm -rf /usr/local/ispconfig');
echo "Please do not forget to delete the ispconfig user in the mysql.user table.\n\n";
    echo "Finished uninstalling.\n";
echo "Finished.\n";
} else {
    echo "\n\n>> Canceled uninstall. \n\n";
}
?>