Skip to content

Commit 8f0ca02

Browse files
committed
fix: create console api key via running container
1 parent ca2e649 commit 8f0ca02

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

deploy/install-server.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ create_console_api_key() {
122122

123123
while [ "$attempt" -le "$max_attempts" ]; do
124124
if output=$(
125-
cd "$TARGET_DIR"
126-
"${COMPOSE_CMD[@]}" run --rm -T --no-deps simprint-console-gateway \
125+
docker exec simprint-console-gateway /app/app \
127126
--config /app/configs/console.toml apikey create --name "extension-sync" 2>&1
128127
); then
129128
api_key_line=$(printf '%s\n' "$output" | sed -n 's/^[[:space:]]*X-API-KEY: //p' | tail -n 1)
@@ -139,7 +138,7 @@ create_console_api_key() {
139138
exit 1
140139
fi
141140

142-
echo "Waiting for simprint-console-gateway to finish database initialization (attempt $attempt/$max_attempts)..."
141+
echo "Waiting for simprint-console-gateway to become ready (attempt $attempt/$max_attempts)..."
143142
sleep 3
144143
attempt=$((attempt + 1))
145144
done

0 commit comments

Comments
 (0)