Skip to content

Commit 6b63672

Browse files
authored
Merge pull request white-poto#11 from pfinal/master
Mission:setUserAndGroup()
2 parents 9c47e04 + 01cc458 commit 6b63672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenner/Crontab/Mission.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ protected function setUserAndGroup()
294294
{
295295
if (!is_null($this->user)) {
296296
if (!is_null($this->group)) {
297-
$group_info = posix_getgrnam($this->user);
297+
$group_info = posix_getgrnam($this->group);
298298
$group_id = $group_info['gid'];
299299
if (!posix_setgid($group_id)) {
300300
throw new \RuntimeException("set group failed");

0 commit comments

Comments
 (0)