Fix auth helper script

This commit is contained in:
2026-02-16 23:37:59 +00:00
parent 073a5b0d0c
commit 6bc8a0ab88
2 changed files with 11 additions and 11 deletions

View File

@@ -1,13 +1,10 @@
#!/bin/sh
podman exec -i gia sh -c "cd /code && . /venv/bin/activate && python auth_django.py"
#cd /code
#. /code/xf/GIA/genv/bin/activate
#exec python /code/xf/GIA/auth_django.py
set -eu
set -e
podman exec -i gia sh -c '
# Prosody external auth expects a single long-lived stdin/stdout process.
# Keep one stable process chain and hand off with exec.
exec podman exec -i gia sh -lc '
cd /code &&
. /venv/bin/activate &&
exec python auth_django.py
exec python -u auth_django.py
'