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-26 04:55:48 +0300
committernachoparker <nacho@ownyourbits.com>2019-01-27 19:18:07 +0300
commit9a36ceb4227e3c65ac90af8e534e2a2daddc285e (patch)
tree81053409fc5b052eeefd9565522df1f4a00fca70 /update.sh
parent338da330f4ce312a4d1fc44beaf9ababe2863888 (diff)
letsencrypt: use the latest github versionv1.4.9
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index 279fd487..978f728d 100755
--- a/update.sh
+++ b/update.sh
@@ -276,6 +276,20 @@ EOF
[[ "$( ls -1 /etc/cron.daily/ | wc -l )" -gt 0 ]] && chmod 755 /etc/cron.daily/*
[[ "$( ls -1 /etc/cron.hourly/ | wc -l )" -gt 0 ]] && chmod 755 /etc/cron.hourly/*
+ # change letsencrypt from package based to git based
+ [[ -f /etc/letsencrypt/certbot-auto ]] || {
+ echo "updating letsencrypt..."
+ [[ -f /.docker-image ]] && mv "$(readlink /etc/letsencrypt)" /etc/letsencrypt-old
+ [[ -f /.docker-image ]] || mv /etc/letsencrypt /etc/letsencrypt-old
+ rm -f /etc/letsencrypt
+ apt-get remove -y letsencrypt
+ apt-get autoremove -y
+ install_app letsencrypt
+ 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
+ }
+
# 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)
[[ "$( ls -l /etc/php/7.2/fpm/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.2/fpm/conf.d/*-opcache.ini | tail -1 )"