Fix su prosody (4).
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user