From f4038a2160d55a7f519a3b42be1aa96e29e9a908 Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Wed, 27 Feb 2013 09:01:40 -0500 Subject: [PATCH] - Fixed "FUNCTION databasename.CONCAT does not exist" error for older MySQL versions. --- server/plugins-available/cron_jailkit_plugin.inc.php | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/plugins-available/cron_jailkit_plugin.inc.php b/server/plugins-available/cron_jailkit_plugin.inc.php index 8df854a..963d71e 100644 --- a/server/plugins-available/cron_jailkit_plugin.inc.php +++ b/server/plugins-available/cron_jailkit_plugin.inc.php @@ -124,7 +124,7 @@ $this->_add_jailkit_user(); - $command .= 'usermod -U '.escapeshellcmd($parent_domain["system_user"]); + $command .= 'usermod -U '.escapeshellcmd($parent_domain["system_user"]).' 2>/dev/null'; exec($command); $this->_update_website_security_level(); @@ -223,7 +223,7 @@ $command = '/usr/local/ispconfig/server/scripts/create_jailkit_chroot.sh'; $command .= ' '.escapeshellcmd($this->parent_domain['document_root']); $command .= ' \''.$this->jailkit_config['jailkit_chroot_app_sections'].'\''; - exec($command); + exec($command.' 2>/dev/null'); $this->app->log("Added jailkit chroot with command: ".$command,LOGLEVEL_DEBUG); @@ -268,14 +268,14 @@ $command = '/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh'; $command .= ' '.escapeshellcmd($this->parent_domain['document_root']); $command .= ' \''.$this->jailkit_config['jailkit_chroot_app_programs'].'\''; - exec($command); + exec($command.' 2>/dev/null'); $this->app->log("Added programs to jailkit chroot with command: ".$command,LOGLEVEL_DEBUG); $command = '/usr/local/ispconfig/server/scripts/create_jailkit_programs.sh'; $command .= ' '.escapeshellcmd($this->parent_domain['document_root']); $command .= ' \''.$this->jailkit_config['jailkit_chroot_cron_programs'].'\''; - exec($command); + exec($command.' 2>/dev/null'); $this->app->log("Added cron programs to jailkit chroot with command: ".$command,LOGLEVEL_DEBUG); } @@ -299,7 +299,7 @@ $command .= ' '.escapeshellcmd($this->parent_domain['document_root']); $command .= ' '.$jailkit_chroot_userhome; $command .= ' '.escapeshellcmd("/bin/bash"); - exec($command); + exec($command.' 2>/dev/null'); $this->app->log("Added jailkit user to chroot with command: ".$command,LOGLEVEL_DEBUG); -- Gitblit v1.9.1