use separate escapeshellarg()-calls as it leads to 'group user' as being recognized as the group only

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-01-05 18:16:51 +01:00
parent 40d51dc7ef
commit 55c7b2aedf

View File

@@ -98,7 +98,7 @@ while ($row = $result_tasks_stmt->fetch(PDO::FETCH_ASSOC)) {
&& !in_array(Settings::Get('system.httpuser'), $groupinfo['members']) && !in_array(Settings::Get('system.httpuser'), $groupinfo['members'])
) { ) {
// webserver has no access, add it // 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')));
} }
} }