@@ -, +, @@ gitified instance --- debian/scripts/koha-rebuild-zebra | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) --- a/debian/scripts/koha-rebuild-zebra +++ a/debian/scripts/koha-rebuild-zebra @@ -49,12 +49,21 @@ run_rebuild_zebra() { local instancename=$1; shift + # If we 'gitified' a Koha instance, point to adjusted locations + if [ -e /etc/koha/sites/$instancename/gitified ]; then + libpath=`cat /etc/koha/sites/$instancename/gitified` + rebuild=$libpath/misc + else + libpath=/usr/share/koha/lib + rebuild=/usr/share/koha/bin + fi + # TODO: This comment is here to remind us that we should make # rebuild_zebra.pl return error codes on failure if sudo -u "$instancename-koha" -H \ - env PERL5LIB=/usr/share/koha/lib \ + env PERL5LIB=$libpath \ KOHA_CONF="/etc/koha/sites/$instancename/koha-conf.xml" \ - /usr/share/koha/bin/migration_tools/rebuild_zebra.pl $@ ; then + $rebuild/migration_tools/rebuild_zebra.pl $@ ; then return 0 else return 1 --