diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-27 19:04:46 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-27 19:04:46 +0000 |
commit | c20c4066311341e332dc425023f856b6414de9ae (patch) | |
tree | d6086c3d4e4bc282cbffab5689b160af8a49829f /ikiwiki-mass-rebuild | |
parent | 0cc3b4353093918a5bab7d3e4d839fcd4c2ef922 (diff) |
* 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-x | ikiwiki-mass-rebuild | 9 |
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 } |