fixed a missing ROOTCMD
[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
3112b59e 11
f4e3fe9f 12# Configure for remote use
3112b59e 13fcopy /home/ikiwiki/.ssh/config
f4e3fe9f 14
82d3b7c2
LMM
15# Configure git
16$ROOTCMD git config --global user.name "WebUI"
17$ROOMCMD git config --global user.email "ikiwiki@gluestick.office.fsf.org"