From 8a7a87f07c6870f78bf6f589e67cc9b6ed24d5c1 Mon Sep 17 00:00:00 2001 From: vogelor <vogelor@ispconfig3> Date: Tue, 25 May 2010 12:19:42 -0400 Subject: [PATCH] if you use the domain - module then the domain list (at sites + email) is sorted --- server/mods-available/remoteaction_core_module.inc.php | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/server/mods-available/remoteaction_core_module.inc.php b/server/mods-available/remoteaction_core_module.inc.php index 81aa277..1c4e54e 100644 --- a/server/mods-available/remoteaction_core_module.inc.php +++ b/server/mods-available/remoteaction_core_module.inc.php @@ -147,11 +147,15 @@ /* * Do the update */ - exec("cd /tmp"); + $oldDir = getcwd(); + chdir("/tmp"); + + exec("rm /tmp/ISPConfig-" . $new_version . ".tar.gz"); + exec("rm /tmp/ispconfig3_install -R"); exec("wget http://www.ispconfig.org/downloads/ISPConfig-" . $new_version . ".tar.gz"); exec("tar xvfz ISPConfig-" . $new_version . ".tar.gz"); - exec("cd ispconfig3_install/install"); + chdir("/tmp/ispconfig3_install/install"); exec("touch autoupdate"); exec("php -q autoupdate.php"); -- Gitblit v1.9.1