fix(bootstrap): bootstrap_completed only checks file existence, not content
All checks were successful
BotServer CI / build (push) Successful in 8m50s

This commit is contained in:
Rodrigo Rodriguez 2026-02-14 13:49:15 +00:00
parent 0c44f7784d
commit bd92ff7bfd

View file

@ -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={}",