Forráskód Böngészése

Dovecot fix namespace inbox=yes only for Debian9

dpeca 7 éve
szülő
commit
5170e5f5aa
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      install/vst-install-debian.sh

+ 3 - 1
install/vst-install-debian.sh

@@ -1079,7 +1079,9 @@ if [ "$dovecot" = 'yes' ]; then
     cp -rf $vestacp/dovecot /etc/
     cp -f $vestacp/logrotate/dovecot /etc/logrotate.d/
     chown -R root:root /etc/dovecot*
-    sed -i "s#namespace inbox {#namespace inbox {\n  inbox = yes#" /etc/dovecot/conf.d/15-mailboxes.conf
+    if [ "$release" -eq 9 ]; then
+        sed -i "s#namespace inbox {#namespace inbox {\n  inbox = yes#" /etc/dovecot/conf.d/15-mailboxes.conf
+    fi
     update-rc.d dovecot defaults
     service dovecot start
     check_result $? "dovecot start failed"