浏览代码

Update i2p domains during bdsmail upgrade if needed

Bob Mottram 7 年前
父节点
当前提交
79448aa603
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone-app-bdsmail

+ 4
- 0
src/freedombone-app-bdsmail 查看文件

@@ -164,6 +164,10 @@ function upgrade_bdsmail {
164 164
     make GOROOT=/home/go/go${GO_VERSION}
165 165
     chown -R i2psvc:i2psvc $BDSMAIL_DIR
166 166
     systemctl restart bdsmail
167
+
168
+    if ! grep -q "$(bdsmail_domain)" /etc/skel/.mutt/bdsmail; then
169
+        bdsmail_update_domain
170
+    fi
167 171
 }
168 172
 
169 173
 function backup_local_bdsmail {