diff --git a/install-stack.sh b/install-stack.sh index 6e98909..be7b22e 100755 --- a/install-stack.sh +++ b/install-stack.sh @@ -1130,6 +1130,16 @@ ${build_out}" && msg_ok "Room Planner running at 10.10.10.120:3080" \ || msg_warn "Room Planner may need extra time — check LXC 120" + # Seed app + capabilities into auth DB + msg_info "Seeding room-planner into auth DB" + pct exec 120 -- docker run --rm \ + -e DATABASE_URL="postgresql://auth:${AUTH_DB_PASS}@10.10.10.100:5432/auth_db" \ + -v /opt/room-planner/seed-app.js:/app/seed-app.js \ + room-planner-backend \ + node seed-app.js &>/dev/null \ + && msg_ok "room-planner seeded into auth DB" \ + || msg_warn "Seed failed — run manually: see seed-app.js" + # Add /room-planner/ location to NPM proxy host npm_add_location "/room-planner/" "10.10.10.120" 3080 }