From bbbfd9dea0f588f3d009936eb26adda5425fd117 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 4 Jan 2016 11:55:48 +0000 Subject: [PATCH] No ddns credentials for onion only system --- src/freedombone | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/freedombone b/src/freedombone index 1e9b70ac..7e2c2535 100755 --- a/src/freedombone +++ b/src/freedombone @@ -866,13 +866,15 @@ function parse_args { exit 3 fi if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then - if [ ! $DDNS_USERNAME ]; then - echo $'Please provide the username for your dynamic DNS provider with the --ddnsuser option' - exit 7823 - fi - if [ ! $DDNS_PASSWORD ]; then - echo $'Please provide the password for your dynamic DNS provider with the --ddnspass option' - exit 6382 + if [[ $ONION_ONLY == "no" ]]; then + if [ ! $DDNS_USERNAME ]; then + echo $'Please provide the username for your dynamic DNS provider with the --ddnsuser option' + exit 7823 + fi + if [ ! $DDNS_PASSWORD ]; then + echo $'Please provide the password for your dynamic DNS provider with the --ddnspass option' + exit 6382 + fi fi fi if [ ! $SYSTEM_TYPE ]; then