mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
Update Queue.php
This commit is contained in:
parent
4316de07a6
commit
4850c690e0
@ -47,7 +47,7 @@ class Queue extends Controller
|
||||
$this->iswin = ProcessService::iswin();
|
||||
if ($this->super = AdminService::isSuper()) {
|
||||
$this->command = ProcessService::think('xadmin:queue start');
|
||||
if (!ProcessService::iswin() && !empty($_SERVER['USER'])) {
|
||||
if (!$this->iswin && !empty($_SERVER['USER'])) {
|
||||
$this->command = "sudo -u {$_SERVER['USER']} {$this->command}";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user