1
0
spogulis no https://github.com/mail-in-a-box/mailinabox.git synced 2025-09-17 11:40:54 +00:00

fix DEFAULT_PUBLIC_IP unbound variable error (#1488)

This will fix this error while installing:
setup/questions.sh: line 95: DEFAULT_PUBLIC_IP: unbound variable
Šī revīzija ir iekļauta:
EliterScripts 2018-12-13 18:28:21 -07:00 revīziju iesūtīja Joshua Tauberer
vecāks 0d4565e71d
revīzija e80a1dd4b7

Parādīt failu

@ -92,7 +92,7 @@ if [ -z "${PUBLIC_IP:-}" ]; then
# On the first run, if we got an answer from the Internet then don't
# ask the user.
if [[ -z "$DEFAULT_PUBLIC_IP" && ! -z "$GUESSED_IP" ]]; then
if [[ -z "${DEFAULT_PUBLIC_IP:-}" && ! -z "$GUESSED_IP" ]]; then
PUBLIC_IP=$GUESSED_IP
# Otherwise on the first run at least provide a default.