fixed typo
[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 fi
7
8 if ! $ROOTCMD test -e /home/ikiwiki/.ssh/id_rsa; then
9 $ROOTCMD echo | $ROOTCMD sudo -u ikiwiki ssh-keygen -N ''
10 fi
11
12 # Configure for remote use
13 fcopy /home/ikiwiki/.ssh/config
14
15 # Configure git
16 $ROOTCMD git config --global user.name "WebUI"
17 $ROOMCMD git config --global user.email "ikiwiki@gluestick.office.fsf.org"