Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2019-01-28 21:48:40 +0300
committernachoparker <nacho@ownyourbits.com>2019-01-28 22:00:06 +0300
commit6331ce5dcdaf0f61d24792654ccc2cdb2639ed70 (patch)
treead66f43060d29cc0bf037cbc172fd2cc9a24c25c /update.sh
parent55121d483dda8fe286823a3230079b3683a0707e (diff)
update: make letsencrypt update more resiliant (2)v1.4.11
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index 90662f7d..5e25a62d 100755
--- a/update.sh
+++ b/update.sh
@@ -297,6 +297,13 @@ EOF
bash -c "sleep 2 && service apache2 reload" &>/dev/null &
}
+ # fix LE update bug (2)
+ if [[ -d /etc/letsencrypt/archive ]] && [[ "$(ls /etc/letsencrypt/archive/* 2>/dev/null | wc -l )" == "0" ]]; then
+ rmdir /etc/letsencrypt/archive
+ sleep 3
+ cp -ravT /etc/letsencrypt-old/archive /etc/letsencrypt/archive || true
+ bash -c "sleep 2 && service apache2 reload" &>/dev/null &
+ fi
# remove redundant opcache configuration. Leave until update bug is fixed -> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815968
# Bug #416 reappeared after we moved to php7.2 and debian buster packages. (keep last)