Files
customer-installer/setupowner.sh
Wolfgang ff1526cc83 feat: Auto-import n8n RAG workflow with credentials
- Fixed n8n API login: use 'emailOrLdapLoginId' instead of 'email'
- Added n8n_setup_rag_workflow() function to libsupabase.sh
- Creates PostgreSQL and Ollama credentials automatically
- Imports RAG KI-Bot workflow with correct credential references
- Removed tags from workflow JSON (API validation issue)
- Step 10 now fully automated: credentials + workflow import

Tested successfully on container sb-1769173910
2026-01-23 14:15:16 +01:00

15 lines
408 B
Bash
Executable File

CTID=768165834
ADMIN_EMAIL="metzw@metz.tech"
ADMIN_PASS="#Start!123"
pct exec "$CTID" -- bash -lc '
apt-get update -y >/dev/null
apt-get install -y curl >/dev/null
curl -sS -X POST "http://127.0.0.1:5678/rest/owner/setup" \
-H "Content-Type: application/json" \
-d "{\"email\":\"'"$ADMIN_EMAIL"'\",\"firstName\":\"Owner\",\"lastName\":\"Admin\",\"password\":\"'"$ADMIN_PASS"'\"}"
echo
'