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