aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki-mass-rebuild
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-05-27 19:04:46 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-05-27 19:04:46 +0000
commitc20c4066311341e332dc425023f856b6414de9ae (patch)
treed6086c3d4e4bc282cbffab5689b160af8a49829f /ikiwiki-mass-rebuild
parent0cc3b4353093918a5bab7d3e4d839fcd4c2ef922 (diff)
downloadikiwiki-c20c4066311341e332dc425023f856b6414de9ae.tar
ikiwiki-c20c4066311341e332dc425023f856b6414de9ae.tar.gz
* Add -refresh option to ikiwiki-mass-rebuild and use that on upgrades that
do not need a full rebuild, in order to update any basewiki pages.
Diffstat (limited to 'ikiwiki-mass-rebuild')
-rwxr-xr-xikiwiki-mass-rebuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/ikiwiki-mass-rebuild b/ikiwiki-mass-rebuild
index daba2ca43..dac54cb8e 100755
--- a/ikiwiki-mass-rebuild
+++ b/ikiwiki-mass-rebuild
@@ -1,6 +1,11 @@
#!/bin/sh
set -e
+action=""
+if [ -n "$1" ]; then
+ action="$1"
+fi
+
wikilist=/etc/ikiwiki/wikilist
processline () {
@@ -15,8 +20,8 @@ processline () {
if [ ! -f "$setup" ]; then
echo "warning: $setup specified in /etc/ikiwiki/wikilist does not exist, skipping" >&2
else
- echo "Rebuilding $setup as user $user ..."
- su "$user" -c "ikiwiki -setup $setup"
+ echo "Processing $setup as user $user ..."
+ su "$user" -c "ikiwiki -setup $setup $action"
fi
}