tbrehm
2012-11-30 348bc9196177aa00f10ca61dbda5fd967b187377
Fixed: FS#2542 - Transferring a site to a new user
2 files modified
8 ■■■■ changed files
server/plugins-available/apache2_plugin.inc.php 4 ●●●● patch | view | raw | blame | history
server/plugins-available/nginx_plugin.inc.php 4 ●●●● patch | view | raw | blame | history
server/plugins-available/apache2_plugin.inc.php
@@ -421,8 +421,8 @@
            
            //* Create new base directory, if it does not exist yet
            if(!is_dir($new_dir)) $app->system->mkdirpath($new_dir);
            //exec('mv '.$data['old']['document_root'].' '.$new_dir);
            $app->system->rename($data['old']['document_root'],$new_dir);
            exec('mv '.escapeshellarg($data['old']['document_root']).' '.escapeshellarg($new_dir));
            //$app->system->rename($data['old']['document_root'],$new_dir);
            $app->log('Moving site to new document root: mv '.$data['old']['document_root'].' '.$new_dir,LOGLEVEL_DEBUG);
            // Handle the change in php_open_basedir
server/plugins-available/nginx_plugin.inc.php
@@ -435,8 +435,8 @@
            
            //* Create new base directory, if it does not exist yet
            if(!is_dir($new_dir)) $app->system->mkdirpath($new_dir);
            //exec('mv '.$data['old']['document_root'].' '.$new_dir);
            $app->system->rename($data['old']['document_root'],$new_dir);
            exec('mv '.escapeshellarg($data['old']['document_root']).' '.escapeshellarg($new_dir));
            //$app->system->rename($data['old']['document_root'],$new_dir);
            $app->log('Moving site to new document root: mv '.$data['old']['document_root'].' '.$new_dir,LOGLEVEL_DEBUG);
            // Handle the change in php_open_basedir