From 79448aa6033f1c5177ccb2c797d33cce02e92ecf Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Wed, 14 Feb 2018 13:24:52 +0000
Subject: [PATCH] Update i2p domains during bdsmail upgrade if needed

---
 src/freedombone-app-bdsmail | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/freedombone-app-bdsmail b/src/freedombone-app-bdsmail
index a4110771f..6b1b5a3dd 100755
--- a/src/freedombone-app-bdsmail
+++ b/src/freedombone-app-bdsmail
@@ -164,6 +164,10 @@ function upgrade_bdsmail {
     make GOROOT=/home/go/go${GO_VERSION}
     chown -R i2psvc:i2psvc $BDSMAIL_DIR
     systemctl restart bdsmail
+
+    if ! grep -q "$(bdsmail_domain)" /etc/skel/.mutt/bdsmail; then
+        bdsmail_update_domain
+    fi
 }
 
 function backup_local_bdsmail {
-- 
GitLab