fixed scripts to copy more files
[fai-configs.git] / scripts / IKIWIKI / 10-ikiwiki.sh
index 19773098651a7afe047b602def561647e18ae948..b959b6cc101cb341a0364db8e4add2c33a6aba88 100755 (executable)
@@ -3,7 +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 ssh-keygen -N ''
+    $ROOTCMD echo | $ROOTCMD sudo -u ikiwiki ssh-keygen -N ''
 fi
+
+# Configure for remote use 
+fcopy /home/ikiwiki/.ssh/config
+