Spaces:
Sleeping
Sleeping
# Check if the user is root | |
if [ "$(id -u)" = "0" ]; then | |
# Drop privileges using gosu | |
exec gosu user "$0" "$@" | |
fi | |
# Handle any pre-start tasks if needed | |
# Run the main command | |
exec "$@" | |