From 01cc458f1615333cbbc8cc359147018745891438 Mon Sep 17 00:00:00 2001 From: ethan Date: Mon, 21 Aug 2017 22:30:48 +0800 Subject: [PATCH] Mission:setUserAndGroup() --- src/Jenner/Crontab/Mission.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jenner/Crontab/Mission.php b/src/Jenner/Crontab/Mission.php index ec90c53..293d38a 100644 --- a/src/Jenner/Crontab/Mission.php +++ b/src/Jenner/Crontab/Mission.php @@ -294,7 +294,7 @@ protected function setUserAndGroup() { if (!is_null($this->user)) { if (!is_null($this->group)) { - $group_info = posix_getgrnam($this->user); + $group_info = posix_getgrnam($this->group); $group_id = $group_info['gid']; if (!posix_setgid($group_id)) { throw new \RuntimeException("set group failed");