Fix su prosody (3).
This commit is contained in:
@@ -65,5 +65,8 @@ fi
|
||||
|
||||
echo "Starting Prosody..."
|
||||
|
||||
# Switch to prosody user and execute prosody
|
||||
exec su -l prosody -c 'exec "$@"' -- "$@"
|
||||
# Ensure proper ownership before running
|
||||
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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user