修复安装脚本错误

pull/273/head v1.2.0.20210125_beta
Karson 2021-01-25 21:04:13 +08:00
parent 35220f545c
commit 700184c8eb
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ class Install extends Command
}
return "'{$matches[1]}'{$matches[2]}=>{$matches[3]}Env::get('database.{$matches[1]}', '{$replace}'),";
};
$dbConfigText = preg_replace_callback("/'(hostname|database|username|password|hostport|prefix)'(\s+)=>(\s+)Env::get\((.*)\)\,/", $callback, $config);
$dbConfigText = preg_replace_callback("/'(hostname|database|username|password|hostport|prefix)'(\s+)=>(\s+)Env::get\((.*)\)\,/", $callback, $dbConfigText);
// 检测能否成功写入数据库配置
$result = @file_put_contents($dbConfigFile, $dbConfigText);