diff options
author | nachoparker <nacho@ownyourbits.com> | 2019-03-23 19:20:23 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-03-23 19:27:54 +0300 |
commit | 38799fd537ffc7c466f76956bd3ff8ba8cc445ac (patch) | |
tree | 9a6848022ec60086f15e40edac4b71c48a776f0c /update.sh | |
parent | 24602646d93ab61dd13ee331e70300fd2f9a6beb (diff) |
letsencrypt: rework notificationv1.10.6
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 )" |