#!/bin/bash set -euo pipefail cd /opt/ai-fresh-delivery/server TOKEN=$(curl -sS -m 10 -X POST 'http://127.0.0.1:3001/api/auth/token' \ -H 'Content-Type: application/json' \ --data-raw "$(printf '{"email":"%s","password":"%s"}' "${SUPERADMIN_EMAIL:-superadmin@meoo.local}" "$SUPERADMIN_PASSWORD")" | node -pe "JSON.parse(require('fs').readFileSync(0,'utf8')).access_token") curl -sS -m 10 "http://127.0.0.1:3001/api/data/query" \ -H "Authorization: Bearer $TOKEN" \ -H 'Content-Type: application/json' \ --data-raw '{"table":"system_configs","action":"select","select":"id,config_key,config_value","limit":2}' | node -pe "JSON.stringify(JSON.parse(require('fs').readFileSync(0,'utf8')),null,2)"