fixed logic
[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
f0c44cb5 6fi
35c2205d 7
38fbaad3 8if ! $ROOTCMD test -e /home/ikiwiki/.ssh/id_rsa; then
ee1b8211 9 $ROOTCMD echo | $ROOTCMD sudo -u ikiwiki ssh-keygen -N ''
35c2205d 10fi