瀏覽代碼

Skip upgrade if letsencrypt is upgrading its certificates

Bob Mottram 6 年之前
父節點
當前提交
83ea67971e
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      src/freedombone-upgrade

+ 6
- 0
src/freedombone-upgrade 查看文件

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