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

(-)a/debian/koha-common.postinst (-1 / +28 lines)
Lines 131-136 EOF Link Here
131
    fi
131
    fi
132
fi
132
fi
133
133
134
log4perl_component()
135
{
136
    local config=$1
137
    local component=$2
138
139
    if [ grep -q -x "log4perl.logger.$component" $config ]; then
140
        return 0
141
    else
142
        return 1
143
    fi
144
}
145
146
# Take care of the instance's log4perl.conf file
147
for site in $(koha-list); do
148
    log4perl_config="/etc/koha/sites/$site/log4perl.conf"
149
    if [ !log4perl_component $log4perl_config "z3950" ]; then
150
        cat <<EOF >> $log4perl_config
151
log4perl.logger.z3950 = WARN, Z3950
152
log4perl.appender.Z3950=Log::Log4perl::Appender::File
153
log4perl.appender.Z3950.filename=/var/log/koha/$site/z3950-error.log
154
log4perl.appender.Z3950.mode=append
155
log4perl.appender.Z3950.layout=PatternLayout
156
log4perl.appender.Z3950.layout.ConversionPattern=[%d] [%p] %m %l %n
157
158
EOF
159
    fi
160
done
161
134
# Bug 14106 - fix the modulePath of existing koha instances so that it'll
162
# Bug 14106 - fix the modulePath of existing koha instances so that it'll
135
# continue to work. This will only patch the files if the exact original string
163
# continue to work. This will only patch the files if the exact original string
136
# that we're fixing them from is there, so we just run it every time. Maybe
164
# that we're fixing them from is there, so we just run it every time. Maybe
137
- 

Return to bug 24905