projects
/
fai-configs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed scripts to copy more files
[fai-configs.git]
/
scripts
/
IKIWIKI
/
20-setup-ikiwiki.sh
diff --git
a/scripts/IKIWIKI/20-setup-ikiwiki.sh
b/scripts/IKIWIKI/20-setup-ikiwiki.sh
index 44659933aa52a5358bd9c01ed63237ec9c2c158d..3a02ac8b07ffa3807e9504278dd424133cabaec7 100755
(executable)
--- a/
scripts/IKIWIKI/20-setup-ikiwiki.sh
+++ b/
scripts/IKIWIKI/20-setup-ikiwiki.sh
@@
-1,10
+1,13
@@
#!/bin/sh
# Detect if ikikwiki is already installed
#!/bin/sh
# Detect if ikikwiki is already installed
-if
[ ! -e /etc/ikiwiki/ikiwiki.setup ]
; then
+if
! $ROOTCMD test -e /etc/ikiwiki/ikiwiki.setup
; then
# copy ikiwiki config
fcopy -v /etc/ikiwiki/ikiwiki.setup
# run setup
# copy ikiwiki config
fcopy -v /etc/ikiwiki/ikiwiki.setup
# run setup
- $ROOTCMD
ikiwiki --setup /etc/ikiwiki/auto.setup/DEFAULT
+ $ROOTCMD
sudo -u ikiwiki ikiwiki --setup /etc/ikiwiki/ikiwiki.setup
fi
fi
+
+# Fix the local gitrepo
+fcopy /srv/ikiwiki/wiki.git/config