fix(bootstrap): bootstrap_completed only checks file existence, not content
All checks were successful
BotServer CI / build (push) Successful in 8m50s
All checks were successful
BotServer CI / build (push) Successful in 8m50s
This commit is contained in:
parent
0c44f7784d
commit
bd92ff7bfd
1 changed files with 1 additions and 5 deletions
|
|
@ -90,11 +90,7 @@ pub async fn run_bootstrap(
|
|||
|
||||
let env_path = std::path::Path::new("./.env");
|
||||
let vault_init_path = std::path::Path::new("./botserver-stack/conf/vault/init.json");
|
||||
let bootstrap_completed = env_path.exists() && vault_init_path.exists() && {
|
||||
std::fs::read_to_string(env_path)
|
||||
.map(|content| content.contains("VAULT_TOKEN="))
|
||||
.unwrap_or(false)
|
||||
};
|
||||
let bootstrap_completed = env_path.exists() && vault_init_path.exists();
|
||||
|
||||
info!(
|
||||
"Bootstrap check: .env exists={}, init.json exists={}, bootstrap_completed={}",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue