Browse Source

Remove temporary renewal file if it exists

Bob Mottram 6 years ago
parent
commit
9a150445e6
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/freedombone-utils-web

+ 8
- 0
src/freedombone-utils-web View File

316
     # the main script tries to renew once per month
316
     # the main script tries to renew once per month
317
     { echo '#!/bin/bash';
317
     { echo '#!/bin/bash';
318
       echo '';
318
       echo '';
319
+      echo 'if [ -f ~/temp_renewletsencrypt.txt ]; then';
320
+      echo '    rm ~/temp_renewletsencrypt.txt';
321
+      echo 'fi';
322
+      echo '';
319
       echo 'if [ -f /tmp/.upgrading ]; then';
323
       echo 'if [ -f /tmp/.upgrading ]; then';
320
       echo '    if [ ! -f ~/letsencrypt_failed ]; then';
324
       echo '    if [ ! -f ~/letsencrypt_failed ]; then';
321
       echo '        touch ~/letsencrypt_failed';
325
       echo '        touch ~/letsencrypt_failed';
380
     # a secondary script keeps trying to renew after a failure
384
     # a secondary script keeps trying to renew after a failure
381
     { echo '#!/bin/bash';
385
     { echo '#!/bin/bash';
382
       echo '';
386
       echo '';
387
+      echo 'if [ -f ~/temp_renewletsencrypt.txt ]; then';
388
+      echo '    rm ~/temp_renewletsencrypt.txt';
389
+      echo 'fi';
390
+      echo '';
383
       echo 'if [ -f /tmp/.upgrading ]; then';
391
       echo 'if [ -f /tmp/.upgrading ]; then';
384
       echo '    if [ ! -f ~/letsencrypt_failed ]; then';
392
       echo '    if [ ! -f ~/letsencrypt_failed ]; then';
385
       echo '        touch ~/letsencrypt_failed';
393
       echo '        touch ~/letsencrypt_failed';