fix: use correct working directory for pnpm module resolution in install.sh

The node -e command to set instance name needs to run from
/app/packages/server where pnpm's symlinked node_modules resolve
better-sqlite3, not from /app root.
This commit is contained in:
Jannis Braun
2026-03-03 19:57:32 +01:00
parent 617999500b
commit fd175023c1
+1 -1
View File
@@ -391,7 +391,7 @@ fi
# ── Phase 7: Set instance name ──────────────────────────────
if [[ "$healthy" == true && -n "$INSTANCE_NAME" && "$INSTANCE_NAME" != "Backspace" ]]; then
$DOCKER exec -w /app backspace node -e "
$DOCKER exec -w /app/packages/server backspace node -e "
const Database = require('better-sqlite3');
const db = new Database('/app/data/backspace.db');
const changes = db.prepare('UPDATE instance_settings SET instance_name = ? WHERE id = 1').run('${INSTANCE_NAME}').changes;