Parcourir la source

Skip upgrade if letsencrypt is upgrading its certificates

Bob Mottram il y a 6 ans
Parent
révision
83ea67971e
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6
    0
      src/freedombone-upgrade

+ 6
- 0
src/freedombone-upgrade Voir le fichier

@@ -40,6 +40,12 @@ CURRENT_BRANCH=master
40 40
 # clear temporary files
41 41
 rm -rf /tmp/*
42 42
 
43
+# Is letsencrypt updating its certificates?
44
+# If yes then skip the upgrade to avoid any collisions
45
+if [ -f ~/temp_renewletsencrypt.txt ]; then
46
+    exit 0
47
+fi
48
+
43 49
 UTILS_FILES="/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*"
44 50
 for f in $UTILS_FILES
45 51
 do