Remove temporary renewal file if it exists

This commit is contained in:
Bob Mottram 2018-06-09 10:19:55 +01:00
parent 99fc662547
commit 9a150445e6
1 changed files with 8 additions and 0 deletions

View File

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