Add meetbot archives for ticket 5375. Thanks marc84
This commit is contained in:
parent
6b8e2af182
commit
5dbcf34c0c
2 changed files with 20 additions and 0 deletions
8
roles/supybot/files/archive.sh
Normal file
8
roles/supybot/files/archive.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /srv/web/meetbot/teams
|
||||
for team in *; do
|
||||
pushd $team >/dev/null 2>&1
|
||||
tar -cphf /srv/web/meetbot/archives/$team.tgz *.log.txt
|
||||
popd >/dev/null 2>&1
|
||||
done
|
|
@ -28,6 +28,10 @@
|
|||
file: path=/srv/web/meetbot/teams state=directory owner=apache group=apache mode=0755
|
||||
tags: supybot
|
||||
|
||||
- name: create archives directory
|
||||
file: path=/srv/web/meetbot/archives state=directory owner=apache group=apache mode=0755
|
||||
tags: supybot
|
||||
|
||||
- name: setup meetings_by_team script
|
||||
copy: src=meetings_by_team.sh dest=/usr/local/bin/meetings_by_team.sh mode=755
|
||||
tags: supybot
|
||||
|
@ -36,6 +40,14 @@
|
|||
cron: name=meetings-by-team hour="23" minute="0" user=apache job="/usr/local/bin/meetings_by_team.sh"
|
||||
tags: supybot
|
||||
|
||||
- name: setup archive script
|
||||
copy: src=archive.sh dest=/usr/local/bin/archive.sh mode=755
|
||||
tags: supybot
|
||||
|
||||
- name: teams cron job
|
||||
cron: name=archive hour="23" minute="30" user=apache job="/usr/local/bin/archive.sh"
|
||||
tags: supybot
|
||||
|
||||
- name: setup meetbot.conf apache config
|
||||
copy: src=meetbot.conf dest=/etc/httpd/conf.d/meetbot.conf mode=644
|
||||
tags: supybot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue