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

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

37
 
37
 
38
 CURRENT_BRANCH=master
38
 CURRENT_BRANCH=master
39
 
39
 
40
-# clear temporary files
41
-rm -rf /tmp/*
42
-
43
 # Is letsencrypt updating its certificates?
40
 # Is letsencrypt updating its certificates?
44
 # If yes then skip the upgrade to avoid any collisions
41
 # If yes then skip the upgrade to avoid any collisions
45
 if [ -f ~/temp_renewletsencrypt.txt ]; then
42
 if [ -f ~/temp_renewletsencrypt.txt ]; then
72
 fi
69
 fi
73
 
70
 
74
 # upgrading file prevents USB canary or other jobs from activating
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
 if [ -f /usr/bin/backupdatabases ]; then
75
 if [ -f /usr/bin/backupdatabases ]; then
80
     if grep -q "cat /root/dbpass" /usr/bin/backupdatabases; then
76
     if grep -q "cat /root/dbpass" /usr/bin/backupdatabases; then