Commit | Line | Data |
---|---|---|
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 |