Bob Mottram 6 年前
父节点
当前提交
c6ca3e5c4b
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2
    6
      src/freedombone-upgrade

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

@@ -37,9 +37,6 @@ PROJECT_REPO="https://code.freedombone.net/bashrc/${PROJECT_NAME}"
37 37
 
38 38
 CURRENT_BRANCH=master
39 39
 
40
-# clear temporary files
41
-rm -rf /tmp/*
42
-
43 40
 # Is letsencrypt updating its certificates?
44 41
 # If yes then skip the upgrade to avoid any collisions
45 42
 if [ -f ~/temp_renewletsencrypt.txt ]; then
@@ -72,9 +69,8 @@ if [ $DEVELOPMENT_BRANCH ]; then
72 69
 fi
73 70
 
74 71
 # upgrading file prevents USB canary or other jobs from activating
75
-if [ ! -f /tmp/.upgrading ]; then
76
-    touch /tmp/.upgrading
77
-fi
72
+rm -rf /tmp/*
73
+touch /tmp/.upgrading
78 74
 
79 75
 if [ -f /usr/bin/backupdatabases ]; then
80 76
     if grep -q "cat /root/dbpass" /usr/bin/backupdatabases; then