瀏覽代碼

Conditions not needed for the mesh variant

Bob Mottram 9 年之前
父節點
當前提交
951489c0cd
共有 1 個檔案被更改,包括 9 行新增7 行删除
  1. 9
    7
      src/freedombone

+ 9
- 7
src/freedombone 查看文件

@@ -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