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

cd /home/wiki-{{sublab_web_server_name}}

rm -Rf wiki-html
cp /var/www/{{sublab_web_server_name}}/wiki-page.tmpl templates/page.tmpl
ikiwiki --setup wiki.setup
mkdir wiki-html/auth
ln -sv ../ikiwiki.cgi wiki-html/auth/ikiwiki.cgi