Simplify dynamic DNS setup
This commit is contained in:
parent
fe8e070b7e
commit
432230c521
|
@ -247,9 +247,7 @@ function choose_default_domain_name {
|
||||||
save_configuration_values
|
save_configuration_values
|
||||||
}
|
}
|
||||||
|
|
||||||
function choose_dynamic_dns {
|
function dynamic_dns_setup {
|
||||||
if [[ $SYSTEM_TYPE != "mesh"* && $ONION_ONLY == "no" ]]; then
|
|
||||||
|
|
||||||
data=$(tempfile 2>/dev/null)
|
data=$(tempfile 2>/dev/null)
|
||||||
trap "rm -f $data" 0 1 2 5 15
|
trap "rm -f $data" 0 1 2 5 15
|
||||||
dialog --backtitle $"Freedombone Configuration" \
|
dialog --backtitle $"Freedombone Configuration" \
|
||||||
|
@ -390,7 +388,22 @@ function choose_dynamic_dns {
|
||||||
done
|
done
|
||||||
save_configuration_values
|
save_configuration_values
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function choose_dynamic_dns {
|
||||||
|
DDNS_PROVIDER="none"
|
||||||
|
|
||||||
|
if [[ $SYSTEM_TYPE != "mesh"* && $ONION_ONLY == "no" ]]; then
|
||||||
|
dialog --title $"Dynamic DNS" \
|
||||||
|
--backtitle $"Freedombone Configuration" \
|
||||||
|
--yesno $"\nConfigure a dynamic DNS service?\n\nIf it is already handled by your internet router then select 'no'." 10 50
|
||||||
|
sel=$?
|
||||||
|
case $sel in
|
||||||
|
0) dynamic_dns_setup;;
|
||||||
|
255) exit 1;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
save_configuration_values
|
||||||
}
|
}
|
||||||
|
|
||||||
function choose_debian_repo {
|
function choose_debian_repo {
|
||||||
|
|
Loading…
Reference in New Issue