fixed scripts to copy more files
[fai-configs.git] / scripts / IKIWIKI / 10-ikiwiki.sh
... / ...
CommitLineData
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
6fi
7
8if ! $ROOTCMD test -e /home/ikiwiki/.ssh/id_rsa; then
9 $ROOTCMD echo | $ROOTCMD sudo -u ikiwiki ssh-keygen -N ''
10fi
11
12# Configure for remote use
13fcopy /home/ikiwiki/.ssh/config
14