Browse Source

OCSP / Webmail - Refresh templates during upgrade

Kristan Kenney 6 years ago
parent
commit
4a7fc85591
1 changed files with 6 additions and 0 deletions
  1. 6 0
      install/upgrade/versions/latest.sh

+ 6 - 0
install/upgrade/versions/latest.sh

@@ -69,4 +69,10 @@ if [ ! -z "$FIREWALL_EXTENSION" ]; then
     if ! cat /etc/fail2ban/jail.local | grep -q "recidive"; then
         echo -e "\n\n[recidive]\nenabled  = true\nmaxretry = 3\nfindtime = 86400\nbantime  = 864000" >> /etc/fail2ban/jail.local
     fi
+fi
+
+# Update webmail templates to enable OCSP/SSL stapling
+if [ ! -z "$IMAP_SYSTEM" ]; then
+    echo "(*) Enabling OCSP stapling support for webmail services..."
+    $BIN/v-update-mail-templates > /dev/null 2>&1
 fi