- 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
15 lines
408 B
Bash
Executable File
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
|
|
'
|
|
|