Parcourir la source

Remove commit if the old inadyn binary is found

Bob Mottram il y a 6 ans
Parent
révision
0dbb5c0c6c
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3
    0
      src/freedombone-utils-web

+ 3
- 0
src/freedombone-utils-web Voir le fichier

@@ -497,6 +497,9 @@ function install_dynamicdns {
497 497
 
498 498
     echo "************ 4"
499 499
     if [ -f /usr/local/sbin/inadyn ]; then
500
+        if grep -q "inadyn commit" "$COMPLETION_FILE"; then
501
+            sed -d '/inadyn commit/d' "$COMPLETION_FILE"
502
+        fi
500 503
         if [ -d "$INSTALL_DIR/inadyn" ]; then
501 504
             rm -rf "$INSTALL_DIR/inadyn"
502 505
         fi