Files
vpnbot/scripts/start_xray.sh
T
2023-06-28 03:19:12 +04:00

9 lines
238 B
Bash

cat /ssh/key.pub > /root/.ssh/authorized_keys
ssh-keygen -A
exec /usr/sbin/sshd -D -e "$@" &
if [ $(cat /xray.json | jq -r '.inbounds[0].settings.clients[0].id' | wc -c) -gt 1 ]
then
xray run -config /xray.json &
fi
tail -f /dev/null