packweb-apache: fix awstats cron
This commit is contained in:
parent
0ef627e4bd
commit
6f0fb57595
|
@ -46,3 +46,12 @@
|
||||||
create: yes
|
create: yes
|
||||||
regexp: '-config=awstats'
|
regexp: '-config=awstats'
|
||||||
line: "10 */6 * * * root umask 033; [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache2/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null"
|
line: "10 */6 * * * root umask 033; [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache2/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null"
|
||||||
|
|
||||||
|
- name: Remove default awstat cron's tasks
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/cron.d/awstats
|
||||||
|
regexp: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
with_items:
|
||||||
|
- 'update\.sh'
|
||||||
|
- 'buildstatic\.sh'
|
||||||
|
|
Loading…
Reference in a new issue