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

(-)a/debian/scripts/koha-functions.sh (+11 lines)
Lines 254-259 get_loglevels() Link Here
254
    fi
254
    fi
255
}
255
}
256
256
257
get_max_record_size()
258
{
259
    local instancename=$1
260
    local retval=$(xmlstarlet sel -t -v 'yazgfs/config/zebra_max_record_size' /etc/koha/sites/$instancename/koha-conf.xml)
261
    if [ "$retval" != "" ]; then
262
        echo "$retval"
263
    else
264
        echo "1024"
265
    fi
266
}
267
257
get_tmpdir()
268
get_tmpdir()
258
{
269
{
259
    if [ "$TMPDIR" != "" ]; then
270
    if [ "$TMPDIR" != "" ]; then
(-)a/debian/scripts/koha-zebra (+2 lines)
Lines 61-66 start_zebra() Link Here
61
61
62
    # get zebra log levels from koha-conf.xml
62
    # get zebra log levels from koha-conf.xml
63
    local loglevels=$(get_loglevels ${name})
63
    local loglevels=$(get_loglevels ${name})
64
    local max_record_size=$(get_max_record_size ${name})
64
65
65
    if ! is_zebra_running $name; then
66
    if ! is_zebra_running $name; then
66
67
Lines 76-81 start_zebra() Link Here
76
                    --user=${name}-koha.${name}-koha"
77
                    --user=${name}-koha.${name}-koha"
77
78
78
        ZEBRA_PARAMS="-v $loglevels \
79
        ZEBRA_PARAMS="-v $loglevels \
80
                      -k $max_record_size \
79
                      -f /etc/koha/sites/${name}/koha-conf.xml"
81
                      -f /etc/koha/sites/${name}/koha-conf.xml"
80
82
81
        [ "$verbose" != "no" ] && \
83
        [ "$verbose" != "no" ] && \
(-)a/debian/templates/koha-conf-site.xml.in (-1 / +1 lines)
Lines 296-301 __END_SRU_PUBLICSERVER__ Link Here
296
 <useshibboleth>0</useshibboleth><!-- see C4::Auth_with_shibboleth for extra configs you must do to turn this on -->
296
 <useshibboleth>0</useshibboleth><!-- see C4::Auth_with_shibboleth for extra configs you must do to turn this on -->
297
 <zebra_lockdir>/var/lock/koha/__KOHASITE__</zebra_lockdir>
297
 <zebra_lockdir>/var/lock/koha/__KOHASITE__</zebra_lockdir>
298
 <use_zebra_facets>1</use_zebra_facets>
298
 <use_zebra_facets>1</use_zebra_facets>
299
 <zebra_max_record_size>1024</zebra_max_record_size>
299
 <queryparser_config>/etc/koha/searchengine/queryparser.yaml</queryparser_config>
300
 <queryparser_config>/etc/koha/searchengine/queryparser.yaml</queryparser_config>
300
 <log4perl_conf>__KOHA_CONF_DIR__/log4perl.conf</log4perl_conf>
301
 <log4perl_conf>__KOHA_CONF_DIR__/log4perl.conf</log4perl_conf>
301
 <!-- Uncomment/edit next setting if you want to adjust zebra log levels.
302
 <!-- Uncomment/edit next setting if you want to adjust zebra log levels.
302
- 

Return to bug 18909