Commit a89eb2fd authored by tbrehm's avatar tbrehm
Browse files

Fixed moving of site when the client is changed.

parent d053cb07
......@@ -269,6 +269,11 @@ class apache2_plugin {
exec('mv '.$data["old"]["document_root"].' '.$new_dir);
$app->log("Moving site to new document root: ".'mv '.$data["old"]["document_root"].' '.$new_dir,LOGLEVEL_DEBUG);
$command = 'usermod';
$command .= ' --home '.escapeshellcmd($data["new"]["document_root"]);
$command .= ' '.escapeshellcmd($data["new"]["system_user"]);
Supports Markdown
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