* fix nono check

* put the text in lib instead
This commit is contained in:
Daniel Hansson 2021-05-18 14:01:00 +02:00 коммит произвёл GitHub
Родитель be0eff6a6a
Коммит cca4357c42
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -83,15 +83,15 @@ lowest_compatible_nc 19
# Check if Nextcloud is installed with TLS
check_nextcloud_https "Nextclod Talk"
while :
do
# Let the user choose port. TURN_PORT in msg_box is taken from lib.sh and later changed if user decides to.
msg_box "The default port for Talk used in this script is port $TURN_PORT.
# Let the user choose port. TURN_PORT in msg_box is taken from lib.sh and later changed if user decides to.
msg_box "The default port for Talk used in this script is port $TURN_PORT.
You can read more about that port here: https://www.speedguide.net/port.php?port=$TURN_PORT
You will now be given the option to change this port to something of your own.
Please keep in mind NOT to use the following ports as they are likely in use already:
${NONO_PORTS[*]}"
while :
do
if yesno_box_no "Do you want to change port?"
then
# Ask for port

4
lib.sh
Просмотреть файл

@ -1674,7 +1674,9 @@ test_nono_ports() {
check_nono_ports() {
if test_nono_ports "${1}" "${NONO_PORTS[@]}"
then
msg_box "You have to choose another port than $1. Please start over."
msg_box "You have to choose another port than $1. Please start over.\n
Please keep in mind NOT to use the following ports as they are likely in use already:
${NONO_PORTS[*]}"
return 1
fi
}