浏览代码

Import carddav database schema. I'm unable to run this against the vagrant VM as the webmail_db_password seems to be automatically generated.

Justin Plock 10 年前
父节点
当前提交
bd9b22f603
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 2
    0
      roles/webmail/handlers/main.yml
  2. 1
    0
      roles/webmail/tasks/roundcube.yml

+ 2
- 0
roles/webmail/handlers/main.yml 查看文件

@@ -0,0 +1,2 @@
1
+- name: import sql carddav
2
+  action: shell PGPASSWORD='{{ webmail_db_password }}' psql -h localhost -d {{ webmail_db_database }} -U {{ webmail_db_username }} -f /usr/share/roundcube/plugins/carddav/dbinit/postgres.sql --set ON_ERROR_STOP=1

+ 1
- 0
roles/webmail/tasks/roundcube.yml 查看文件

@@ -21,6 +21,7 @@
21 21
 
22 22
 - name: Copy carddav plugin files to /usr/share/roundcube/plugins/carddav
23 23
   shell: cp -R rcmcarddav-carddav_{{ carddav_version }}/* /usr/share/roundcube/plugins/carddav/ chdir=/root
24
+  notify: import sql carddav
24 25
 
25 26
 - name: Link carddav plugin into /var/lib/roundcube/plugins
26 27
   file: state=link src=/usr/share/roundcube/plugins/carddav dest=/var/lib/roundcube/plugins/carddav force=yes

正在加载...
取消
保存