summaryrefslogtreecommitdiff
path: root/roles/sublab_web/templates/website-rebuild.sh.j2
blob: ac29e3de8f4d2d4e36fcea86007d688857d49af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e
#
# {{ ansible_managed }}
#

cd /var/www/{{sublab_web_server_name}}/htdocs

if [ x"$1" != x"-l" ]; then
    git fetch git://{{ groups['gitservers'][0] }}/website.git master
    git reset --hard FETCH_HEAD
fi
cd scripts
python template.py
python wikitemplate.py > ../../wiki-page.tmpl