This commit is contained in:
user 2025-09-19 15:35:54 +03:00
parent cbd5dce2ec
commit 72126c7da5
1 changed files with 3 additions and 3 deletions

View File

@ -97,13 +97,13 @@ fi
update_env SANIC_PORT "$SANIC_PORT" update_env SANIC_PORT "$SANIC_PORT"
update_env BACKEND_HTTP_PORT "$BACKEND_HTTP_PORT" update_env BACKEND_HTTP_PORT "$BACKEND_HTTP_PORT"
update_env BOOTSTRAP_SEEDS "$BOOTSTRAP_SEEDS" update_env BOOTSTRAP_SEEDS "$BOOTSTRAP_SEEDS"
local local_bootstrap_required=$(ini_val BOOTSTRAP_REQUIRED) existing_bootstrap_required=$(ini_val BOOTSTRAP_REQUIRED)
if [[ -z "$BOOTSTRAP_SEEDS" ]]; then if [[ -z "$BOOTSTRAP_SEEDS" ]]; then
echo "No bootstrap seeds provided; disabling mandatory bootstrap." echo "No bootstrap seeds provided; disabling mandatory bootstrap."
update_env BOOTSTRAP_REQUIRED 0 update_env BOOTSTRAP_REQUIRED 0
else else
local_bootstrap_required=${local_bootstrap_required:-1} existing_bootstrap_required=${existing_bootstrap_required:-1}
update_env BOOTSTRAP_REQUIRED "$local_bootstrap_required" update_env BOOTSTRAP_REQUIRED "$existing_bootstrap_required"
fi fi
update_env HANDSHAKE_INTERVAL_SEC "$HANDSHAKE_INTERVAL_SEC" update_env HANDSHAKE_INTERVAL_SEC "$HANDSHAKE_INTERVAL_SEC"
if [[ -z "$TELEGRAM_API_KEY" || "$TELEGRAM_API_KEY" == "YOUR_UPLOADER_BOT_TOKEN" ]]; then if [[ -z "$TELEGRAM_API_KEY" || "$TELEGRAM_API_KEY" == "YOUR_UPLOADER_BOT_TOKEN" ]]; then