From c20c4066311341e332dc425023f856b6414de9ae Mon Sep 17 00:00:00 2001 From: joey Date: Sat, 27 May 2006 19:04:46 +0000 Subject: * 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. --- ikiwiki-mass-rebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ikiwiki-mass-rebuild') 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 } -- cgit v1.2.3