2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00

修复(命令行):修复用户判断bug

This commit is contained in:
耗子
2022-12-10 13:24:35 +08:00
parent a1a8659258
commit 6e7cb261e3

View File

@@ -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;
}