Fix su prosody (4).

This commit is contained in:
mguschin
2026-02-04 13:30:56 +03:00
parent e7e784fd64
commit 7b09ea97ec

View File

@@ -65,8 +65,8 @@ fi
echo "Starting Prosody..."
# Ensure proper ownership before running
chown -R prosody:prosody /var/lib/prosody /var/log/prosody /var/run/prosody /etc/prosody
# Ensure proper ownership of writable directories (letsencrypt mount is read-only)
chown -R prosody:prosody /var/lib/prosody /var/log/prosody /var/run/prosody /etc/prosody/certs 2>/dev/null || true
# Execute as root (Prosody in containers running as root is acceptable)
exec "$@"