Remove temporary renewal file if it exists
This commit is contained in:
parent
99fc662547
commit
9a150445e6
|
@ -315,6 +315,10 @@ function letsencrypt_renewals {
|
||||||
|
|
||||||
# the main script tries to renew once per month
|
# the main script tries to renew once per month
|
||||||
{ echo '#!/bin/bash';
|
{ echo '#!/bin/bash';
|
||||||
|
echo '';
|
||||||
|
echo 'if [ -f ~/temp_renewletsencrypt.txt ]; then';
|
||||||
|
echo ' rm ~/temp_renewletsencrypt.txt';
|
||||||
|
echo 'fi';
|
||||||
echo '';
|
echo '';
|
||||||
echo 'if [ -f /tmp/.upgrading ]; then';
|
echo 'if [ -f /tmp/.upgrading ]; then';
|
||||||
echo ' if [ ! -f ~/letsencrypt_failed ]; then';
|
echo ' if [ ! -f ~/letsencrypt_failed ]; then';
|
||||||
|
@ -379,6 +383,10 @@ function letsencrypt_renewals {
|
||||||
|
|
||||||
# a secondary script keeps trying to renew after a failure
|
# a secondary script keeps trying to renew after a failure
|
||||||
{ echo '#!/bin/bash';
|
{ echo '#!/bin/bash';
|
||||||
|
echo '';
|
||||||
|
echo 'if [ -f ~/temp_renewletsencrypt.txt ]; then';
|
||||||
|
echo ' rm ~/temp_renewletsencrypt.txt';
|
||||||
|
echo 'fi';
|
||||||
echo '';
|
echo '';
|
||||||
echo 'if [ -f /tmp/.upgrading ]; then';
|
echo 'if [ -f /tmp/.upgrading ]; then';
|
||||||
echo ' if [ ! -f ~/letsencrypt_failed ]; then';
|
echo ' if [ ! -f ~/letsencrypt_failed ]; then';
|
||||||
|
|
Loading…
Reference in New Issue