Commit aadcccbd authored by mcramer's avatar mcramer
Browse files

Changed: Docroot of subdomains and websites are the same, so removed code getting parent docroot

Fixed: folder protection is removed twice
parent 9ec43488
......@@ -1470,13 +1470,9 @@ class apache2_plugin {
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment