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