Browse Source

Conditions not needed for the mesh variant

Bob Mottram 9 years ago
parent
commit
951489c0cd
1 changed files with 9 additions and 7 deletions
  1. 9
    7
      src/freedombone

+ 9
- 7
src/freedombone View File

@@ -703,13 +703,15 @@ function parse_args {
703 703
       show_help
704 704
       exit 3
705 705
   fi
706
-  if [ ! $DDNS_USERNAME ]; then
707
-      echo 'Please provide the username for your dynamic DNS provider with the --ddnsuser option'
708
-      exit 7823
709
-  fi
710
-  if [ ! $DDNS_PASSWORD ]; then
711
-      echo 'Please provide the password for your dynamic DNS provider with the --ddnspass option'
712
-      exit 6382
706
+  if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then
707
+      if [ ! $DDNS_USERNAME ]; then
708
+          echo 'Please provide the username for your dynamic DNS provider with the --ddnsuser option'
709
+          exit 7823
710
+      fi
711
+      if [ ! $DDNS_PASSWORD ]; then
712
+          echo 'Please provide the password for your dynamic DNS provider with the --ddnspass option'
713
+          exit 6382
714
+      fi
713 715
   fi
714 716
   if [ ! $SYSTEM_TYPE ]; then
715 717
       SYSTEM_TYPE=$VARIANT_FULL