blob: 3f49b8e1f4ea6ee8dd7c18f5f52b17c5ab22792d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
if [ ! -d /srv/web/docs ]
then
echo "/srv/web/docs missing"
cd /srv/web
{% if env == 'staging' %}
git clone https://pagure.io/fedora-docs/fedora-docs-web.git docs
{% else %}
git clone https://pagure.io/fedora-docs/fedora-docs-web.git docs
{% endif %}
fi
cd /srv/web/docs
/usr/bin/git reset -q --hard
{% if env == 'staging' %}
/usr/bin/git checkout -q stg
{% else %}
/usr/bin/git checkout -q prod
{% endif %}
/usr/bin/git pull -q --ff-only
|