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
LMM
7if ! $ROOTCMD test -e /home/ikiwiki/.ssh/id_rsa; then
8 $ROOTCMD echo | $ROOTCMD ssh-keygen -N ''
35c2205d 9fi