Skip to content

Commit 55c7b2a

Browse files
committed
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>
1 parent 40d51dc commit 55c7b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/jobs/cron_tasks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
&& !in_array(Settings::Get('system.httpuser'), $groupinfo['members'])
9999
) {
100100
// webserver has no access, add it
101-
safe_exec('usermod -aG ' . escapeshellarg(Settings::Get('phpfpm.vhost_httpgroup')." ".Settings::Get('system.httpuser')));
101+
safe_exec('usermod -a -G ' . escapeshellarg(Settings::Get('phpfpm.vhost_httpgroup'))." ".escapeshellarg(Settings::Get('system.httpuser')));
102102
}
103103
}
104104

0 commit comments

Comments
 (0)