atomic-htaccess: cron
Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
parent
1074fa0d6d
commit
8cd64a58f5
3 changed files with 18 additions and 0 deletions
2
roles/fedora-web/build/files/sync-atomic-htaccess.cron
Normal file
2
roles/fedora-web/build/files/sync-atomic-htaccess.cron
Normal file
|
@ -0,0 +1,2 @@
|
|||
MAILTO=web-members@fedoraproject.org
|
||||
40 * * * * apache /usr/local/bin/lock-wrapper sync-atomic-htaccess /usr/local/bin/sync-atomic-htaccess.sh
|
6
roles/fedora-web/build/files/sync-atomic-htaccess.sh
Normal file
6
roles/fedora-web/build/files/sync-atomic-htaccess.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
cd /srv/web/atomic-htaccess-generator
|
||||
python /usr/local/bin/atomic-htaccess-generator.py
|
||||
# The . here is meaningful!
|
||||
cp -r out/. /srv/websites/getfedora.org/
|
|
@ -45,6 +45,8 @@
|
|||
- iot.fedoraproject.org
|
||||
- labs.fedoraproject.org
|
||||
- atomic-htaccess-generator
|
||||
- atomic-htaccess-generator/build
|
||||
- atomic-htaccess-generator/out
|
||||
tags:
|
||||
- fedora-web
|
||||
- atomic-htaccess-generator
|
||||
|
@ -60,6 +62,12 @@
|
|||
- fedora-web
|
||||
- atomic-htaccess-generator
|
||||
|
||||
- name: Copy atomic-htaccess-generator.sh helper script
|
||||
copy: src=sync-atomic-htaccess.sh dest=/usr/local/bin/sync-atomic-htaccess.sh owner=root group=root mode=0755
|
||||
tags:
|
||||
- fedora-web
|
||||
- atomic-htaccess-generator
|
||||
|
||||
- name: Copy syncStatic script (stg)
|
||||
when: env == "staging"
|
||||
copy: >
|
||||
|
@ -99,6 +107,8 @@
|
|||
with_items:
|
||||
- syncStatic
|
||||
- syncTranslations
|
||||
- sync-atomic-htaccess
|
||||
tags:
|
||||
- fedora-web
|
||||
- cron
|
||||
- atomic-htaccess-generator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue