Skip to content

Commit

Permalink
use separate escapeshellarg()-calls as it leads to 'group user' as be…
Browse files Browse the repository at this point in the history
…ing recognized as the group only

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
  • Loading branch information
d00p committed Jan 5, 2015
1 parent 40d51dc commit 55c7b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/jobs/cron_tasks.php
Expand Up @@ -98,7 +98,7 @@
&& !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')));
}
}

Expand Down

0 comments on commit 55c7b2a

Please sign in to comment.