3x-ui/DockerEntrypoint.sh
2026-01-18 18:10:17 +03:00

12 lines
182 B
Bash

#!/bin/sh
set -eu
# /app/bin is shared volume
cp /tmp/xray/* /app/bin/
# Start fail2ban
[ "$XUI_ENABLE_FAIL2BAN" = "true" ] && fail2ban-client -x start
# Run x-ui
exec /app/x-ui