summaryrefslogtreecommitdiff
path: root/roles/gitserver/templates/website-post-update-hook.j2
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2015-10-26 20:38:25 +0100
committerChristian Franke <nobody@nowhere.ws>2015-10-26 20:38:25 +0100
commitf38450f9f2037244300082f3e4211b790ac87058 (patch)
tree074ffa7d0512e099742641df8065d7b4139a6e99 /roles/gitserver/templates/website-post-update-hook.j2
parent4e5034f57b54f1a5052fd859d3419002a477e628 (diff)
Assorted changesHEADmaster
- add hooks between webserver and gitserver: git->website and wiki->git work now, git->wiki is still missing, https://ikiwiki.info/tips/Hosting_Ikiwiki_and_master_git_repository_on_different_machines/ should contain the right info for that - actually configure repo_service - replace LDAP auth with dummy password auth for now
Diffstat (limited to 'roles/gitserver/templates/website-post-update-hook.j2')
-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