From 596ffebff656bbef655beb7a45e36356ea00e7a3 Mon Sep 17 00:00:00 2001 From: kxjhlele Date: Tue, 8 Dec 2015 21:23:47 +0800 Subject: [PATCH] Update install-release.sh --- release/install-release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/release/install-release.sh b/release/install-release.sh index 67bea2d4..9578ec87 100755 --- a/release/install-release.sh +++ b/release/install-release.sh @@ -35,13 +35,13 @@ mkdir -p /etc/v2ray if [ ! -f "/etc/v2ray/config.json" ]; then cp "/tmp/v2ray/v2ray-${VER}-linux-${VDIS}/vpoint_vmess_freedom.json" "/etc/v2ray/config.json" - #PORT=$(expr $RANDOM + 10000) - #sed -i "s/37192/${PORT}/g" "/etc/v2ray/config.json" + let PORT=$RANDOM+10000 + sed -i "s/37192/${PORT}/g" "/etc/v2ray/config.json" UUID=$(cat /proc/sys/kernel/random/uuid) sed -i "s/3b129dec-72a3-4d28-aeee-028a0fe86e22/${UUID}/g" "/etc/v2ray/config.json" - #echo "PORT:${PORT}" + echo "PORT:${PORT}" echo "UUID:${UUID}" fi