Browse Source

Merge pull request #189 from nstanke/patch-1

add z-push logrotation
Luke Cyca 10 years ago
parent
commit
b08dd123a5
2 changed files with 12 additions and 1 deletions
  1. 8
    0
      roles/mailserver/files/etc_logrotate_z-push
  2. 4
    1
      roles/mailserver/tasks/z-push.yml

+ 8
- 0
roles/mailserver/files/etc_logrotate_z-push View File

@@ -0,0 +1,8 @@
1
+/var/log/z-push/*.log {
2
+        weekly
3
+        missingok
4
+        rotate 52
5
+        compress
6
+        notifempty
7
+        create 0644 www-data www-data
8
+}

+ 4
- 1
roles/mailserver/tasks/z-push.yml View File

@@ -35,4 +35,7 @@
35 35
 
36 36
 - name: Configure z-push apache alias and php settings
37 37
   copy: src=etc_apache2_conf.d_z-push.conf dest=/etc/apache2/conf.d/z-push.conf
38
-  notify: restart apache
38
+  notify: restart apache
39
+  
40
+- name: Configure z-push logrotate
41
+  copy: src=etc_logrotate_z-push dest=/etc/logrotate.d/z-push owner=root group=root mode=0644

Loading…
Cancel
Save