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

(-)a/debian/scripts/koha-rebuild-zebra (-3 / +11 lines)
Lines 56-67 run_rebuild_zebra() Link Here
56
       [     "${full_reindex}" = "yes" ] ||
56
       [     "${full_reindex}" = "yes" ] ||
57
       [            "${force}" = "yes" ] ; then
57
       [            "${force}" = "yes" ] ; then
58
58
59
        if [ "$DEV_INSTALL" = "" ]; then
60
            KOHA_BINDIR=$KOHA_HOME/bin
61
        else
62
            KOHA_BINDIR=$KOHA_HOME/misc
63
        fi
64
59
        # TODO: This comment is here to remind us that we should make
65
        # TODO: This comment is here to remind us that we should make
60
        # rebuild_zebra.pl return error codes on failure
66
        # rebuild_zebra.pl return error codes on failure
61
        if sudo -u "$instancename-koha" -H \
67
        if sudo -u "$instancename-koha" -H \
62
            env PERL5LIB=/usr/share/koha/lib \
68
            env PERL5LIB=$PERL5LIB \
63
            KOHA_CONF="/etc/koha/sites/$instancename/koha-conf.xml" \
69
            KOHA_CONF="/etc/koha/sites/$instancename/koha-conf.xml" \
64
            /usr/share/koha/bin/migration_tools/rebuild_zebra.pl $@ ; then
70
            $KOHA_BINDIR/migration_tools/rebuild_zebra.pl $@ ; then
65
            return 0
71
            return 0
66
        else
72
        else
67
            return 1
73
            return 1
Lines 148-153 while [ -n "$*" ]; do Link Here
148
    shift
154
    shift
149
done
155
done
150
156
157
# Optionally use alternative paths for a dev install
158
adjust_paths_dev_install $1
159
151
# Parse command line.
160
# Parse command line.
152
if [ $# -lt 1 ]; then
161
if [ $# -lt 1 ]; then
153
    if [ "$quiet" = "no" ]; then
162
    if [ "$quiet" = "no" ]; then
154
- 

Return to bug 16733