mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-16 13:56:03 +08:00
Move the public-db-copy to run at 12utc so it doesn't run before koji dump is done. Ticket 4961
This commit is contained in:
6
roles/batcave/files/public-db-copy.cron
Executable file → Normal file
6
roles/batcave/files/public-db-copy.cron
Executable file → Normal file
@@ -1,5 +1 @@
|
||||
#!/bin/bash
|
||||
mailto='admin@fedoraproject.org'
|
||||
source /root/sshagent >>/dev/null
|
||||
export ANSIBLE_HOST_KEY_CHECKING=False
|
||||
/srv/web/infra/ansible/scripts/public-db-copy >& /dev/null
|
||||
0 12 * * * root /usr/local/bin/public-db-copy.sh
|
||||
|
||||
5
roles/batcave/files/public-db-copy.sh
Executable file
5
roles/batcave/files/public-db-copy.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
mailto='admin@fedoraproject.org'
|
||||
source /root/sshagent >>/dev/null
|
||||
export ANSIBLE_HOST_KEY_CHECKING=False
|
||||
/srv/web/infra/ansible/scripts/public-db-copy >& /dev/null
|
||||
@@ -198,7 +198,16 @@
|
||||
#
|
||||
|
||||
- name: setup public db copy script
|
||||
copy: src=public-db-copy.cron dest=/etc/cron.daily/public-db-copy.cron mode=0755
|
||||
copy: src=public-db-copy.sh dest=/usr/local/bin/public-db-copy.sh mode=0755
|
||||
tags:
|
||||
- batcave
|
||||
- config
|
||||
#
|
||||
# Setup public db copy cron.
|
||||
#
|
||||
|
||||
- name: setup public db copy script
|
||||
copy: src=public-db-copy.cron dest=/etc/cron.d/public-db-copy.cron mode=0644
|
||||
tags:
|
||||
- batcave
|
||||
- config
|
||||
|
||||
Reference in New Issue
Block a user