diff options
author | nachoparker <nacho@ownyourbits.com> | 2019-02-08 03:52:25 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-02-08 03:52:25 +0300 |
commit | 5cf8d4b4244d8fec64aa7d06a1404eb451a58b81 (patch) | |
tree | df85dae0c17b41ebc5470088581f748282961346 | |
parent | 1a6b7df0d39363eb38be96c2ce62bc04543a6c33 (diff) |
update: make letsencrypt update more resiliant (3)
-rwxr-xr-x | update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -285,7 +285,7 @@ EOF apt-get remove -y letsencrypt apt-get autoremove -y install_app letsencrypt || { rm -rf /etc/letsencrypt; mv /etc/letsencrypt-old /etc/letsencrypt; exit 1; } - cp -raT /etc/letsencrypt-old/live /etc/letsencrypt/live + [[ -f /etc/letsencrypt-old/live ]] && cp -raT /etc/letsencrypt-old/live /etc/letsencrypt/live [[ -f /.docker-image ]] && persistent_cfg /etc/letsencrypt [[ -f /etc/cron.weekly/letsencrypt-ncp ]] && run_app letsencrypt } |