From 9a150445e6fcaf09eda6a368af2473e4e950eefb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 9 Jun 2018 10:19:55 +0100 Subject: [PATCH] Remove temporary renewal file if it exists --- src/freedombone-utils-web | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index 9c3b8b0f..36c3120e 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -315,6 +315,10 @@ function letsencrypt_renewals { # the main script tries to renew once per month { echo '#!/bin/bash'; + echo ''; + echo 'if [ -f ~/temp_renewletsencrypt.txt ]; then'; + echo ' rm ~/temp_renewletsencrypt.txt'; + echo 'fi'; echo ''; echo 'if [ -f /tmp/.upgrading ]; then'; echo ' if [ ! -f ~/letsencrypt_failed ]; then'; @@ -379,6 +383,10 @@ function letsencrypt_renewals { # a secondary script keeps trying to renew after a failure { echo '#!/bin/bash'; + echo ''; + echo 'if [ -f ~/temp_renewletsencrypt.txt ]; then'; + echo ' rm ~/temp_renewletsencrypt.txt'; + echo 'fi'; echo ''; echo 'if [ -f /tmp/.upgrading ]; then'; echo ' if [ ! -f ~/letsencrypt_failed ]; then';