From 55c7b2aedf21e35486d4816a40cd6ccc521b48f9 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 5 Jan 2015 18:16:51 +0100 Subject: [PATCH] use separate escapeshellarg()-calls as it leads to 'group user' as being recognized as the group only Signed-off-by: Michael Kaufmann (d00p) --- scripts/jobs/cron_tasks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jobs/cron_tasks.php b/scripts/jobs/cron_tasks.php index 8d9e763a..395c91e3 100644 --- a/scripts/jobs/cron_tasks.php +++ b/scripts/jobs/cron_tasks.php @@ -98,7 +98,7 @@ while ($row = $result_tasks_stmt->fetch(PDO::FETCH_ASSOC)) { && !in_array(Settings::Get('system.httpuser'), $groupinfo['members']) ) { // webserver has no access, add it - safe_exec('usermod -aG ' . escapeshellarg(Settings::Get('phpfpm.vhost_httpgroup')." ".Settings::Get('system.httpuser'))); + safe_exec('usermod -a -G ' . escapeshellarg(Settings::Get('phpfpm.vhost_httpgroup'))." ".escapeshellarg(Settings::Get('system.httpuser'))); } }