Adding some Agent0 auth stuff

This commit is contained in:
2026-04-11 14:26:19 +02:00
parent 014ff8f8ed
commit a086899ea4
2 changed files with 20 additions and 0 deletions
+17
View File
@@ -50,6 +50,13 @@ prompt "Enter Gitea personal access token (needs repo read access — create at
read -r -s GITEA_TOKEN_BOOTSTRAP
echo ""
echo ""
prompt "Enter Agent0 login username: "
read -r AUTH_LOGIN
prompt "Enter Agent0 login password: "
read -r -s AUTH_PASSWORD
echo ""
info "Credentials collected"
# ── Ollama ────────────────────────────────────────────────────────────────────
@@ -231,6 +238,16 @@ fi
section "Docker containers"
cd "$REPO_DIR"
if [[ ! -f "${REPO_DIR}/.env" ]]; then
cat > "${REPO_DIR}/.env" << EOF
AUTH_LOGIN=${AUTH_LOGIN}
AUTH_PASSWORD=${AUTH_PASSWORD}
EOF
info "Agent0 .env created"
else
info "Agent0 .env already exists"
fi
info "Building glitch-tunnel image..."
docker compose build --quiet