mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +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();
|
$this->iswin = ProcessService::iswin();
|
||||||
if ($this->super = AdminService::isSuper()) {
|
if ($this->super = AdminService::isSuper()) {
|
||||||
$this->command = ProcessService::think('xadmin:queue start');
|
$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}";
|
$this->command = "sudo -u {$_SERVER['USER']} {$this->command}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user