tty / entrypoint.sh
wky's picture
Update entrypoint.sh
6e7de62 verified
Raw
History Blame Contribute Delete
279 Bytes
#!/bin/sh
# 如果没有设置 UUID,则默认一个
if [ -z "$UUID" ]; then
UUID="23ad6b10-82a6-4444-9d51-62ecf97831f2"
fi
# 替换配置文件中的 PORT 和 UUID
sed -i "s/PORT/$PORT/g" config.json
sed -i "s/UUID/$UUID/g" config.json
# 启动 Xray
./xray -c config.json