ftimme
2013-02-12 04cf58be7b4e4bb6e3d4b9f82a5ce74cd5688219
- nginx: Fixed error messages of server cron when moving websites with vhost subdomains between clients.
1 files modified
2 ■■■■■ changed files
server/plugins-available/nginx_plugin.inc.php 2 ●●●●● patch | view | raw | blame | history
server/plugins-available/nginx_plugin.inc.php
@@ -435,6 +435,7 @@
                }
            }
            if($data["new"]["type"] != "vhostsubdomain") {
            //* Move the site data
            $tmp_docroot = explode('/',$data['new']['document_root']);
            unset($tmp_docroot[count($tmp_docroot)-1]);
@@ -470,6 +471,7 @@
            $command .= ' --gid '.escapeshellcmd($data['new']['system_group']);
            $command .= ' '.escapeshellcmd($data['new']['system_user']);
            exec($command);
            }
            if($nginx_chrooted) $this->_exec('chroot '.escapeshellcmd($web_config['website_basedir']).' '.$command);