This commit is contained in:
Leon 2021-08-13 15:29:32 +08:00 committed by GitHub
parent a83d6ef71d
commit bb5d9cc35f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,7 +224,6 @@ check_port() {
echo "正在检测端口:$1" echo "正在检测端口:$1"
netstat -tlpn | grep "\b$1\b" netstat -tlpn | grep "\b$1\b"
} }
if [ "$port" != "2" ]; then
while check_port $V2P_PORT; do while check_port $V2P_PORT; do
echo -n -e "\e[31m端口:$V2P_PORT 被占用,请重新输入 webUI 端口:\e[0m" echo -n -e "\e[31m端口:$V2P_PORT 被占用,请重新输入 webUI 端口:\e[0m"
read V2P_PORT read V2P_PORT
@ -240,7 +239,6 @@ if [ "$port" != "2" ]; then
read REQUEST_PORT read REQUEST_PORT
done done
echo -e "\e[34m恭喜端口:$REQUEST_PORT 可用\e[0m" echo -e "\e[34m恭喜端口:$REQUEST_PORT 可用\e[0m"
fi
log "3.开始创建容器并执行" log "3.开始创建容器并执行"