浏览代码

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
 # clear temporary files
40
 # clear temporary files
41
 rm -rf /tmp/*
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
 UTILS_FILES="/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*"
49
 UTILS_FILES="/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*"
44
 for f in $UTILS_FILES
50
 for f in $UTILS_FILES
45
 do
51
 do