fixed scripts to copy more files
[fai-configs.git] / scripts / IKIWIKI / 10-ikiwiki.sh
index 2ddfea156925b3d0cf47dd1019fb66b9f4495723..b959b6cc101cb341a0364db8e4add2c33a6aba88 100755 (executable)
@@ -3,5 +3,12 @@
 # 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
+