fixed logic
[fai-configs.git] / scripts / IKIWIKI / 10-ikiwiki.sh
index 2ddfea156925b3d0cf47dd1019fb66b9f4495723..274dda67fb22951a7dc7a556c8913b5e86452319 100755 (executable)
@@ -3,5 +3,8 @@
 # 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