summaryrefslogtreecommitdiff
path: root/roles/gitserver/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/gitserver/templates')
-rw-r--r--roles/gitserver/templates/website-post-update-hook.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/gitserver/templates/website-post-update-hook.j2 b/roles/gitserver/templates/website-post-update-hook.j2
new file mode 100644
index 0000000..bdc655e
--- /dev/null
+++ b/roles/gitserver/templates/website-post-update-hook.j2
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec ssh git_server_rpc@{{groups['webservers'][0]}} sudo /var/www/{{sublab_web_server_name}}/website-rebuild.sh