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

(-)a/debian/koha-common.postinst (-1 / +48 lines)
Lines 190-195 EOF Link Here
190
done
190
done
191
191
192
for site in $(koha-list); do
192
for site in $(koha-list); do
193
    log4perl_config="/etc/koha/sites/$site/log4perl.conf"
194
    if ! log4perl_component $log4perl_config "plack-opac"; then
195
        cat <<EOF >> $log4perl_config
196
log4perl.logger.plack-opac = WARN, PLACKOPAC
197
log4perl.appender.PLACKOPAC=Log::Log4perl::Appender::File
198
log4perl.appender.PLACKOPAC.filename=/var/log/koha/$site/plack-opac-error.log
199
log4perl.appender.PLACKOPAC.mode=append
200
log4perl.appender.PLACKOPAC.layout=PatternLayout
201
log4perl.appender.PLACKOPAC.layout.ConversionPattern=[%d] [%p] %m
202
log4perl.appender.PLACKOPAC.utf8=1
203
204
EOF
205
    fi
206
done
207
208
for site in $(koha-list); do
209
    log4perl_config="/etc/koha/sites/$site/log4perl.conf"
210
    if ! log4perl_component $log4perl_config "plack-api"; then
211
        cat <<EOF >> $log4perl_config
212
log4perl.logger.plack-api = WARN, PLACKAPI
213
log4perl.appender.PLACKAPI=Log::Log4perl::Appender::File
214
log4perl.appender.PLACKAPI.filename=/var/log/koha/$site/plack-api-error.log
215
log4perl.appender.PLACKAPI.mode=append
216
log4perl.appender.PLACKAPI.layout=PatternLayout
217
log4perl.appender.PLACKAPI.layout.ConversionPattern=[%d] [%p] %m
218
log4perl.appender.PLACKAPI.utf8=1
219
220
EOF
221
    fi
222
done
223
224
for site in $(koha-list); do
225
    log4perl_config="/etc/koha/sites/$site/log4perl.conf"
226
    if ! log4perl_component $log4perl_config "plack-intranet"; then
227
        cat <<EOF >> $log4perl_config
228
log4perl.logger.plack-intranet = WARN, PLACKINTRANET
229
log4perl.appender.PLACKINTRANET=Log::Log4perl::Appender::File
230
log4perl.appender.PLACKINTRANET.filename=/var/log/koha/$site/plack-intranet-error.log
231
log4perl.appender.PLACKINTRANET.mode=append
232
log4perl.appender.PLACKINTRANET.layout=PatternLayout
233
log4perl.appender.PLACKINTRANET.layout.ConversionPattern=[%d] [%p] %m
234
log4perl.appender.PLACKINTRANET.utf8=1
235
236
EOF
237
    fi
238
done
239
240
for site in $(koha-list); do
193
    kohaconfig="/etc/koha/sites/$site/koha-conf.xml"
241
    kohaconfig="/etc/koha/sites/$site/koha-conf.xml"
194
    logdir="$( xmlstarlet sel -t -v 'yazgfs/config/logdir' $kohaconfig )"
242
    logdir="$( xmlstarlet sel -t -v 'yazgfs/config/logdir' $kohaconfig )"
195
    if [ "$logdir" != "" ] && [ "$logdir" != "0" ]; then
243
    if [ "$logdir" != "" ] && [ "$logdir" != "0" ]; then
196
- 

Return to bug 16357