View | Details | Raw Unified | Return to bug 13971
Collapse All | Expand All

(-)a/debian/scripts/koha-rebuild-zebra (-3 / +11 lines)
Lines 49-60 run_rebuild_zebra() Link Here
49
{
49
{
50
    local instancename=$1; shift
50
    local instancename=$1; shift
51
51
52
    # If we 'gitified' a Koha instance, point to adjusted locations
53
    if [ -e /etc/koha/sites/$instancename/gitified ]; then
54
        libpath=`cat /etc/koha/sites/$instancename/gitified`
55
        rebuild=$libpath/misc
56
    else
57
        libpath=/usr/share/koha/lib
58
        rebuild=/usr/share/koha/bin
59
    fi
60
52
    # TODO: This comment is here to remind us that we should make
61
    # TODO: This comment is here to remind us that we should make
53
    # rebuild_zebra.pl return error codes on failure
62
    # rebuild_zebra.pl return error codes on failure
54
    if sudo -u "$instancename-koha" -H \
63
    if sudo -u "$instancename-koha" -H \
55
        env PERL5LIB=/usr/share/koha/lib \
64
        env PERL5LIB=$libpath \
56
        KOHA_CONF="/etc/koha/sites/$instancename/koha-conf.xml" \
65
        KOHA_CONF="/etc/koha/sites/$instancename/koha-conf.xml" \
57
        /usr/share/koha/bin/migration_tools/rebuild_zebra.pl $@ ; then
66
        $rebuild/migration_tools/rebuild_zebra.pl $@ ; then
58
        return 0
67
        return 0
59
    else
68
    else
60
        return 1
69
        return 1
61
- 

Return to bug 13971