|
@@ -365,6 +365,10 @@ function letsencrypt_renewals {
|
365
|
365
|
# a secondary script keeps trying to renew after a failure
|
366
|
366
|
{ echo '#!/bin/bash';
|
367
|
367
|
echo '';
|
|
368
|
+ echo 'if [ -f /tmp/.upgrading ]; then';
|
|
369
|
+ echo ' exit 0';
|
|
370
|
+ echo 'fi';
|
|
371
|
+ echo '';
|
368
|
372
|
echo "PROJECT_NAME='${PROJECT_NAME}'";
|
369
|
373
|
echo "COMPLETION_FILE=\$HOME/\${PROJECT_NAME}-completed.txt";
|
370
|
374
|
echo '';
|
|
@@ -377,6 +381,11 @@ function letsencrypt_renewals {
|
377
|
381
|
echo "}')";
|
378
|
382
|
echo " ADMIN_EMAIL_ADDRESS=\$ADMIN_USERNAME@\$HOSTNAME";
|
379
|
383
|
echo ' for d in /etc/letsencrypt/live/*/ ; do';
|
|
384
|
+ echo '';
|
|
385
|
+ echo ' if [ -f /tmp/.upgrading ]; then';
|
|
386
|
+ echo ' exit 0';
|
|
387
|
+ echo ' fi';
|
|
388
|
+ echo '';
|
380
|
389
|
echo -n " LETSENCRYPT_DOMAIN=\$(echo \"\$d\" | ";
|
381
|
390
|
echo -n "awk -F '/' '{print ";
|
382
|
391
|
echo -n "\$5";
|