added inital isntall for gmg, no configfile yet
[fai-configs.git] / scripts / IKIWIKI / 20-setup-ikiwiki.sh
index 44659933aa52a5358bd9c01ed63237ec9c2c158d..914b829e35ff54cd5fe02dbb28660750a2c209d5 100755 (executable)
@@ -1,10 +1,14 @@
 #!/bin/sh
 
 # Detect if ikikwiki is already installed
-if [ ! -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 ikiwiki --setup /etc/ikiwiki/auto.setup/DEFAULT
+ $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
+
+