From cb5f9e82b073639ae5d7f25ae5361f9ce4776174 Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Sun, 24 Feb 2013 15:57:33 -0500 Subject: [PATCH] - Added function to find out when a MySQL user can be dropped and when we have to revoke user rights on databases instead of dropping the user. --- server/plugins-available/nginx_plugin.inc.php | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/server/plugins-available/nginx_plugin.inc.php b/server/plugins-available/nginx_plugin.inc.php index 73fc849..1a593aa 100644 --- a/server/plugins-available/nginx_plugin.inc.php +++ b/server/plugins-available/nginx_plugin.inc.php @@ -469,7 +469,7 @@ $command = 'killall -u '.escapeshellcmd($data['new']['system_user']).' && usermod'; $command .= ' --home '.escapeshellcmd($data['new']['document_root']); $command .= ' --gid '.escapeshellcmd($data['new']['system_group']); - $command .= ' '.escapeshellcmd($data['new']['system_user']); + $command .= ' '.escapeshellcmd($data['new']['system_user']).' 2>/dev/null'; exec($command); } @@ -705,7 +705,7 @@ if($web_config['add_web_users_to_sshusers_group'] == 'y') { $command = 'usermod'; $command .= ' --groups sshusers'; - $command .= ' '.escapeshellcmd($data['new']['system_user']); + $command .= ' '.escapeshellcmd($data['new']['system_user']).' 2>/dev/null'; $this->_exec($command); } @@ -1666,8 +1666,6 @@ } } } - - } if(is_array($subdomain_hosts) && !empty($subdomain_hosts)){ $log_folders = array(); -- Gitblit v1.9.1