Przeglądaj źródła

Skip upgrade if letsencrypt is upgrading its certificates

Bob Mottram 6 lat temu
rodzic
commit
83ea67971e
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6
    0
      src/freedombone-upgrade

+ 6
- 0
src/freedombone-upgrade Wyświetl plik

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