3a02ac8b07ffa3807e9504278dd424133cabaec7
[fai-configs.git] / scripts / IKIWIKI / 20-setup-ikiwiki.sh
1 #!/bin/sh
2
3 # Detect if ikikwiki is already installed
4 if ! $ROOTCMD test -e /etc/ikiwiki/ikiwiki.setup ; then
5 # copy ikiwiki config
6 fcopy -v /etc/ikiwiki/ikiwiki.setup
7
8 # run setup
9 $ROOTCMD sudo -u ikiwiki ikiwiki --setup /etc/ikiwiki/ikiwiki.setup
10 fi
11
12 # Fix the local gitrepo
13 fcopy /srv/ikiwiki/wiki.git/config