mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
修复(命令行):修复用户判断bug
This commit is contained in:
@@ -35,7 +35,7 @@ class Panel extends Command
|
||||
public function handle()
|
||||
{
|
||||
// 检测是否以root用户运行
|
||||
if (shell_exec('whoami') != 'root') {
|
||||
if (trim(shell_exec('whoami')) != 'root') {
|
||||
$this->error('耗子Linux面板:请以root用户运行');
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user