瀏覽代碼

Fix bug in opendmarc report scripts

This patch corrects a bug in the OpenDMARC 1.2.0+dfsg-1 package, fixed in 1.3.0 (or Debian 1.2.0+dfsg-2 which has not yet made it to Ubuntu Trusty).  See also

- https://sourceforge.net/p/opendmarc/tickets/90/
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742447
Mike Ashley 7 年之前
父節點
當前提交
3ec386e028
共有 1 個檔案被更改,包括 14 行新增1 行删除
  1. 14
    1
      roles/mailserver/tasks/dmarc.yml

+ 14
- 1
roles/mailserver/tasks/dmarc.yml 查看文件

@@ -1,10 +1,23 @@
1 1
 - name: Install OpenDMARC milter and related packages
2
-  apt: pkg={{ item }} state=installed update_cache=yes
2
+  apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=3600
3 3
   with_items:
4 4
       - mysql-server
5 5
       - python-mysqldb
6 6
       - opendmarc
7 7
 
8
+- name: Patch opendmarc scripts (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742447)
9
+  lineinfile: dest=/usr/sbin/{{ item }} regexp='^require DBD::' line='require DBD::mysql;'
10
+  with_items:
11
+    - opendmarc-import
12
+    - opendmarc-reports
13
+    - opendmarc-params
14
+
15
+- name: Patch opendmarc scripts part deux (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742447)
16
+  lineinfile: dest=/usr/sbin/{{ item }} regexp='^my \$dbscheme' line='my $dbscheme     = "mysql";'
17
+  with_items:
18
+    - opendmarc-reports
19
+    - opendmarc-import
20
+
8 21
 - name: Copy OpenDMARC configuration file into place
9 22
   template: src=etc_opendmarc.conf.j2 dest=/etc/opendmarc.conf owner=root group=root
10 23
   notify: restart opendmarc

Loading…
取消
儲存