Merge branch 'master' of vcs.fsf.org:fai-configs
[fai-configs.git] / scripts / IKIWIKI / 20-setup-ikiwiki.sh
index 36696b2de9d7fdf44426029bdb216ac43393a015..914b829e35ff54cd5fe02dbb28660750a2c209d5 100755 (executable)
@@ -1,13 +1,14 @@
 #!/bin/sh
 
 # Detect if ikikwiki is already installed
-if [ ! $ROOTCMD test -e /etc/ikiwiki/ikiwiki.setup ]; then
+if ! $ROOTCMD test -e /etc/ikiwiki/ikiwiki.setup ; then
  # copy ikiwiki config
  fcopy -v /etc/ikiwiki/ikiwiki.setup
 
  # run setup
  $ROOTCMD sudo -u ikiwiki ikiwiki --setup /etc/ikiwiki/ikiwiki.setup
+ # Fix the local gitrepo
+  $ROOTCMD sudo -u ikiwiki ikiwiki git clone git@vcs.fsf.org:gluestick.git
 fi
 
-# Fix the local gitrepo
-fcopy /srv/ikiwiki/wiki.git/config
+