projects
/
fai-configs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
movewiki fixes
[fai-configs.git]
/
scripts
/
IKIWIKI
/
10-ikiwiki.sh
diff --git
a/scripts/IKIWIKI/10-ikiwiki.sh
b/scripts/IKIWIKI/10-ikiwiki.sh
index 2ddfea156925b3d0cf47dd1019fb66b9f4495723..bfd538754c246ae86c275fb1ec6d142901bb6aaa 100755
(executable)
--- 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
# 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
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"