From c9435bcf367b6a54d396caf9d4fac4c39b43167a Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 29 Aug 2012 05:23:36 -0400
Subject: [PATCH] Fixed: FS#2324 - Moving a mail domain from a client to another doesn't work totally?
---
server/plugins-available/apache2_plugin.inc.php | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index 48d992a..c3e9cf3 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -1470,13 +1470,9 @@
if($subdomain_host == '') $subdomain_host = 'web'.$data['old']['domain_id'];
$web_folder = $data['old']['web_folder'];
$log_folder .= '/' . $subdomain_host;
- $parent_web_document_root = $tmp['document_root'];
- $app->system->web_folder_protection($parent_web_document_root,false);
unset($tmp);
- } else {
- $app->system->web_folder_protection($data['old']['document_root'],false);
}
-
+
exec('umount '.escapeshellarg($data['old']['document_root'].'/'.$log_folder));
//* remove mountpoint from fstab
@@ -1521,7 +1517,7 @@
$docroot = escapeshellcmd($data['old']['document_root']);
if($docroot != '' && !stristr($docroot,'..')) {
if($data['old']['type'] == 'vhost') exec('rm -rf '.$docroot);
- elseif(!stristr($data['old']['web_folder'], '..')) exec('rm -rf '.$docroot.'/'.$web_folder;
+ elseif(!stristr($data['old']['web_folder'], '..')) exec('rm -rf '.$docroot.'/'.$web_folder);
}
//remove the php fastgi starter script if available
--
Gitblit v1.9.1