diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php index 3a5cbda09edb3689fe6bcb0b22af366708aab808..f88cff20d3dd60444df92dbde86e0cc95267c26e 100644 --- a/server/plugins-available/apache2_plugin.inc.php +++ b/server/plugins-available/apache2_plugin.inc.php @@ -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"]); + exec($command); + } //print_r($data);