This commit is contained in:
암냥 2025-01-09 22:18:05 +09:00
commit fad157ad29

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Required environment variables # Required environment variables
required_vars=("BOT_ROOT" "BOT_INSTAGRAM_ID" "BOT_INSTAGRAM_PASSWD" "BOT_KEY" "BOT_WEBHOOK_URL") required_vars=("BOT_ROOT" "BOT_INSTAGRAM_ID" "BOT_INSTAGRAM_PASSWD" "BOT_INSTAGRAM_TOTP" "BOT_KEY" "BOT_WEBHOOK_URL")
# Check for missing environment variables # Check for missing environment variables
missing_vars=() missing_vars=()
@ -23,6 +23,7 @@ cat > config.json << EOF
"ROOT": "${BOT_ROOT}", "ROOT": "${BOT_ROOT}",
"INSTAGRAM_ID": "${BOT_INSTAGRAM_ID}", "INSTAGRAM_ID": "${BOT_INSTAGRAM_ID}",
"INSTAGRAM_PASSWORD": "${BOT_INSTAGRAM_PASSWORD}", "INSTAGRAM_PASSWORD": "${BOT_INSTAGRAM_PASSWORD}",
"INSTAGRAM_TOTP": "${BOT_INSTAGRAM_TOTP}",
"KEY": "${BOT_KEY}", "KEY": "${BOT_KEY}",
"WEBHOOK_URL": "${BOT_WEBHOOK_URL}" "WEBHOOK_URL": "${BOT_WEBHOOK_URL}"
} }