Bugzilla – Attachment 3597 Details for
Bug 6031
koha-rebuild-zebra doesn't allow XML and verbose indexing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-wr78920-play-with-options-passed-on-to-rebuild-zebra.patch (text/plain), 1.47 KB, created by
Robin Sheat
on 2011-03-31 22:34:04 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2011-03-31 22:34:04 UTC
Size:
1.47 KB
patch
obsolete
>From b7166217e45136287ae69160318dad6994b476f7 Mon Sep 17 00:00:00 2001 >From: Srdjan Jankovic <srdjan@catalyst.net.nz> >Date: Wed, 16 Mar 2011 16:00:38 +1300 >Subject: [PATCH] bug 6031: play with options passed on to rebuild-zebra.pl > >--- > debian/scripts/koha-rebuild-zebra | 40 ++++++++++++++++++++++++++++-------- > 1 files changed, 31 insertions(+), 9 deletions(-) > >diff --git a/debian/scripts/koha-rebuild-zebra b/debian/scripts/koha-rebuild-zebra >index 3ae693b..b8201e8 100755 >--- a/debian/scripts/koha-rebuild-zebra >+++ b/debian/scripts/koha-rebuild-zebra >@@ -19,20 +19,42 @@ > > set -e > >+opt_idx="-z" >+opt_xml="-x" >+opts_other="" >+ >+while [ -n "$*" ]; do >+ case "$1" in >+ -u|--usmarc) >+ opt_xml="" >+ ;; >+ -f|--full) >+ opt_idx="-r" >+ ;; >+ -*) >+ opts_other="$opts_other $1"; >+ ;; >+ *) >+ break >+ ;; >+ esac > >-if [ "$1" = --full ] >-then >- opts="-r" > shift >-else >- opts="-z" >-fi >+done > > >-for name in "$@" >-do >+ >+function run_zebra () { >+ name=$1; shift >+ > sudo -u "$name-koha" -H \ > env PERL5LIB=/usr/share/koha/lib \ > KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \ >- /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a $opts >+ /usr/share/koha/bin/migration_tools/rebuild_zebra.pl $@ >+} >+ >+for name in "$@" >+do >+ run_zebra $name -b $opt_idx $opt_xml $opts_other >+ run_zebra $name -a $opt_idx $opts_other > done >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6031
: 3597 |
4023