From bd92ff7bfd432b8f99acd3f1acd1a27ceb3af287 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sat, 14 Feb 2026 13:49:15 +0000 Subject: [PATCH] fix(bootstrap): bootstrap_completed only checks file existence, not content --- src/main_module/bootstrap.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main_module/bootstrap.rs b/src/main_module/bootstrap.rs index 561bb7d9f..a7a85e3e1 100644 --- a/src/main_module/bootstrap.rs +++ b/src/main_module/bootstrap.rs @@ -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={}",