fix: handle disable exec funtion in install script

This commit is contained in:
xboard 2025-08-23 19:32:32 +08:00
parent 72ead1cf8f
commit c13daf4bfd

View File

@ -160,7 +160,9 @@ class XboardInstall extends Command
if (!self::registerAdmin($email, $password)) {
abort(500, '管理员账号注册失败,请重试');
}
self::restoreProtectedPlugins($this);
if (function_exists('exec')) {
self::restoreProtectedPlugins($this);
}
$this->info('正在安装默认插件...');
PluginManager::installDefaultPlugins();
$this->info('默认插件安装完成');