parent
e2d52df050
commit
7c5e9d70cd
@ -209,11 +209,7 @@ check_depends() {
|
||||
|
||||
get_new_port() {
|
||||
port=$1
|
||||
[ "$port" == "auto" ] && {
|
||||
port=2082
|
||||
local GET_NEW_PORT=$(get_cache_var "get_new_port")
|
||||
[ -n "${GET_NEW_PORT}" ] && port=${GET_NEW_PORT}
|
||||
}
|
||||
[ "$port" == "auto" ] && port=2082
|
||||
protocol=$(echo $2 | tr 'A-Z' 'a-z')
|
||||
result=$(check_port_exists $port $protocol)
|
||||
if [ "$result" != 0 ]; then
|
||||
@ -225,7 +221,6 @@ get_new_port() {
|
||||
fi
|
||||
get_new_port $temp $protocol
|
||||
else
|
||||
set_cache_var "get_new_port" "$port"
|
||||
echo $port
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user