atomic-htaccess: cron

Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
Rick Elrod 2019-05-21 19:39:05 +00:00
parent 1074fa0d6d
commit 8cd64a58f5
3 changed files with 18 additions and 0 deletions

View 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

View 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/

View file

@ -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