Browse Source

Don't sync if upgrading inadyn repo

Bob Mottram 6 years ago
parent
commit
45e1e83e63
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/freedombone-utils-web

+ 4
- 4
src/freedombone-utils-web View File

@@ -491,12 +491,12 @@ function install_dynamicdns {
491 491
         if [ -d "$INSTALL_DIR/inadyn" ]; then
492 492
             rm -rf "$INSTALL_DIR/inadyn"
493 493
         fi
494
+    else
495
+        # update to the next commit
496
+        function_check set_repo_commit
497
+        set_repo_commit "$INSTALL_DIR/inadyn" "inadyn commit" "$INADYN_COMMIT" "$INADYN_REPO"
494 498
     fi
495 499
 
496
-    # update to the next commit
497
-    function_check set_repo_commit
498
-    set_repo_commit "$INSTALL_DIR/inadyn" "inadyn commit" "$INADYN_COMMIT" "$INADYN_REPO"
499
-
500 500
     # Here we compile from source because the current package
501 501
     # doesn't support https, which could result in passwords
502 502
     # being leaked