added keygen
[fai-configs.git] / scripts / IKIWIKI / 10-ikiwiki.sh
CommitLineData
35c2205d
LMM
1#! /bin/bash
2
3# add a ikiwiki user account
4if ! $ROOTCMD getent passwd ikiwki ; then
5 $ROOTCMD adduser --system --ingroup www-data --disabled-password --gecos "ikiwiki user" ikiwiki
6
38fbaad3 7if ! $ROOTCMD test -e /home/ikiwiki/.ssh/id_rsa; then
ee1b8211 8 $ROOTCMD echo | $ROOTCMD sudo -u ikiwiki ssh-keygen -N ''
35c2205d 9fi