Simplify dynamic DNS setup

This commit is contained in:
Bob Mottram 2017-05-18 16:03:49 +01:00
parent fe8e070b7e
commit 432230c521
1 changed files with 152 additions and 139 deletions

View File

@ -247,9 +247,7 @@ function choose_default_domain_name {
save_configuration_values
}
function choose_dynamic_dns {
if [[ $SYSTEM_TYPE != "mesh"* && $ONION_ONLY == "no" ]]; then
function dynamic_dns_setup {
data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15
dialog --backtitle $"Freedombone Configuration" \
@ -390,7 +388,22 @@ function choose_dynamic_dns {
done
save_configuration_values
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
save_configuration_values
}
function choose_debian_repo {