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-03-23 19:20:23 +0300
committernachoparker <nacho@ownyourbits.com>2019-03-23 19:27:54 +0300
commit38799fd537ffc7c466f76956bd3ff8ba8cc445ac (patch)
tree9a6848022ec60086f15e40edac4b71c48a776f0c /update.sh
parent24602646d93ab61dd13ee331e70300fd2f9a6beb (diff)
letsencrypt: rework notificationv1.10.6
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index c9e4397b..5ce047d0 100755
--- a/update.sh
+++ b/update.sh
@@ -218,6 +218,15 @@ EOF
is_active_app nc-previews-auto && run_app nc-previews-auto
is_active_app nc-update-nc-apps-auto && run_app nc-update-nc-apps-auto
+ # rework letsencrypt notification
+ USER="$(jq -r '.params[2].value' "$CONFDIR"/letsencrypt.cfg)"
+ cat > /etc/letsencrypt/renewal-hooks/deploy/ncp <<EOF
+#!/bin/bash
+/usr/local/bin/ncc notification:generate $USER "SSL renewal" -l "Your SSL certificate(s) \$RENEWED_DOMAINS has been renewed for another 90 days"
+EOF
+ chmod +x /etc/letsencrypt/renewal-hooks/deploy/ncp
+
+
# 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 )"