summaryrefslogtreecommitdiff
path: root/roles/sublab_web/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/sublab_web/templates')
-rw-r--r--roles/sublab_web/templates/website-rebuild.sh.j27
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/sublab_web/templates/website-rebuild.sh.j2 b/roles/sublab_web/templates/website-rebuild.sh.j2
index 1e4bc0b..ac29e3d 100644
--- a/roles/sublab_web/templates/website-rebuild.sh.j2
+++ b/roles/sublab_web/templates/website-rebuild.sh.j2
@@ -4,8 +4,11 @@
#
cd /var/www/{{sublab_web_server_name}}/htdocs
-git fetch git://{{ groups['gitservers'][0] }}/website.git master
-git reset --hard FETCH_HEAD
+
+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