Commit | Line | Data |
---|---|---|
35c2205d LMM |
1 | #!/bin/sh |
2 | ||
3 | # Detect if ikikwiki is already installed | |
f4e3fe9f | 4 | if [ ! $ROOTCMD test -e /etc/ikiwiki/ikiwiki.setup ]; then |
35c2205d LMM |
5 | # copy ikiwiki config |
6 | fcopy -v /etc/ikiwiki/ikiwiki.setup | |
7 | ||
8 | # run setup | |
f4e3fe9f | 9 | $ROOTCMD sudo -u ikiwiki ikiwiki --setup /etc/ikiwiki/ikiwiki.setup |
35c2205d | 10 | fi |
f4e3fe9f LMM |
11 | |
12 | # Fix the local gitrepo | |
13 | fcopy /srv/ikiwiki/wiki.git/config |