Fix su prosody (3).

This commit is contained in:
mguschin
2026-02-04 13:29:45 +03:00
parent 4308de8b0e
commit e7e784fd64

View File

@@ -65,5 +65,8 @@ fi
echo "Starting Prosody..." echo "Starting Prosody..."
# Switch to prosody user and execute prosody # Ensure proper ownership before running
exec su -l prosody -c 'exec "$@"' -- "$@" chown -R prosody:prosody /var/lib/prosody /var/log/prosody /var/run/prosody /etc/prosody
# Execute as root (Prosody in containers running as root is acceptable)
exec "$@"