X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2FIKIWIKI%2F10-ikiwiki.sh;h=bfd538754c246ae86c275fb1ec6d142901bb6aaa;hb=82d3b7c28b20d7bda7169ff447be7c5df01090c9;hp=2ddfea156925b3d0cf47dd1019fb66b9f4495723;hpb=d1e4fbdc42fc5be3f1da03ef18a679a16b48b557;p=fai-configs.git diff --git a/scripts/IKIWIKI/10-ikiwiki.sh b/scripts/IKIWIKI/10-ikiwiki.sh index 2ddfea1..bfd5387 100755 --- a/scripts/IKIWIKI/10-ikiwiki.sh +++ b/scripts/IKIWIKI/10-ikiwiki.sh @@ -3,5 +3,15 @@ # add a ikiwiki user account if ! $ROOTCMD getent passwd ikiwki ; then $ROOTCMD adduser --system --ingroup www-data --disabled-password --gecos "ikiwiki user" ikiwiki +fi +if ! $ROOTCMD test -e /home/ikiwiki/.ssh/id_rsa; then + $ROOTCMD echo | $ROOTCMD sudo -u ikiwiki ssh-keygen -N '' fi + +# Configure for remote use +fcopy /home/ikiwiki/.ssh/config + +# Configure git +$ROOTCMD git config --global user.name "WebUI" +$ROOMCMD git config --global user.email "ikiwiki@gluestick.office.fsf.org"