fix(auth): address Task 13 deployment review findings
This commit is contained in:
@@ -13,6 +13,10 @@ node /app/docker/ensure-pi-trust.mjs "${THT_HARNESS_DIR:-/app/harness}"
|
||||
cmd="${1:-server}"
|
||||
case "$cmd" in
|
||||
server)
|
||||
[[ "${THT_AUTH_STATE_ROOT:-/data/auth}" == /data/auth ]] \
|
||||
|| { printf '%s\n' 'authentication state root is invalid' >&2; exit 1; }
|
||||
printf '%s\n' '{"version":1,"operation":"ensure-layout","root":"/data/auth"}' \
|
||||
| "${THT_AUTH_STORAGE_BIN:-/usr/local/bin/tht-auth-storage}" _auth-storage >/dev/null
|
||||
exec node /app/backend/dist/server.js
|
||||
;;
|
||||
check)
|
||||
|
||||
Reference in New Issue
Block a user