tbrehm
2009-02-14 a89eb2fde33d052a815767f17111a05a2b763e24
Fixed moving of site when the client is changed.
1 files modified
5 ■■■■■ changed files
server/plugins-available/apache2_plugin.inc.php 5 ●●●●● patch | view | raw | blame | history
server/plugins-available/apache2_plugin.inc.php
@@ -269,6 +269,11 @@
            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);