Bob Mottram 6 yıl önce
ebeveyn
işleme
c6ca3e5c4b
1 değiştirilmiş dosya ile 2 ekleme ve 6 silme
  1. 2
    6
      src/freedombone-upgrade

+ 2
- 6
src/freedombone-upgrade Dosyayı Görüntüle

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