added inital isntall for gmg, no configfile yet
[fai-configs.git] / scripts / IKIWIKI / 10-ikiwiki.sh
old mode 100644 (file)
new mode 100755 (executable)
index 2ddfea1..bfd5387
@@ -3,5 +3,15 @@
 # add a ikiwiki user account
 if ! $ROOTCMD getent passwd ikiwki ; then
     $ROOTCMD adduser --system --ingroup www-data --disabled-password --gecos "ikiwiki user" ikiwiki
+fi
 
+if ! $ROOTCMD test -e /home/ikiwiki/.ssh/id_rsa; then
+    $ROOTCMD echo | $ROOTCMD sudo -u ikiwiki ssh-keygen -N ''
 fi
+
+# Configure for remote use 
+fcopy /home/ikiwiki/.ssh/config
+
+# Configure git
+$ROOTCMD git config --global user.name "WebUI"
+$ROOMCMD git config --global user.email "ikiwiki@gluestick.office.fsf.org"