added keygen
[fai-configs.git] / scripts / IKIWIKI / 10-ikiwiki.sh
old mode 100644 (file)
new mode 100755 (executable)
index 2ddfea1..1977309
@@ -4,4 +4,6 @@
 if ! $ROOTCMD getent passwd ikiwki ; then
     $ROOTCMD adduser --system --ingroup www-data --disabled-password --gecos "ikiwiki user" ikiwiki
 
+if ! $ROOTCMD test -e /home/ikiwiki/.ssh/id_rsa; then
+    $ROOTCMD echo | $ROOTCMD ssh-keygen -N ''
 fi