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

(-)a/debian/koha-common.postinst (-1 / +33 lines)
Lines 189-194 EOF Link Here
189
    fi
189
    fi
190
done
190
done
191
191
192
for site in $(koha-list); do
193
    log4perl_config="/etc/koha/sites/$site/log4perl.conf"
194
    if ! log4perl_component $log4perl_config "sip"; 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=$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
log4perl.logger.plack-api = WARN, PLACKAPI
205
log4perl.appender.PLACKAPI=Log::Log4perl::Appender::File
206
log4perl.appender.PLACKAPI.filename=$site/plack-api-error.log
207
log4perl.appender.PLACKAPI.mode=append
208
log4perl.appender.PLACKAPI.layout=PatternLayout
209
log4perl.appender.PLACKAPI.layout.ConversionPattern=[%d] [%p] %m
210
log4perl.appender.PLACKAPI.utf8=1
211
212
log4perl.logger.plack-intranet = WARN, PLACKINTRANET
213
log4perl.appender.PLACKINTRANET=Log::Log4perl::Appender::File
214
log4perl.appender.PLACKINTRANET.filename=$site/plack-intranet-error.log
215
log4perl.appender.PLACKINTRANET.mode=append
216
log4perl.appender.PLACKINTRANET.layout=PatternLayout
217
log4perl.appender.PLACKINTRANET.layout.ConversionPattern=[%d] [%p] %m
218
log4perl.appender.PLACKINTRANET.utf8=1
219
220
EOF
221
    fi
222
done
223
224
192
for site in $(koha-list); do
225
for site in $(koha-list); do
193
    kohaconfig="/etc/koha/sites/$site/koha-conf.xml"
226
    kohaconfig="/etc/koha/sites/$site/koha-conf.xml"
194
    logdir="$( xmlstarlet sel -t -v 'yazgfs/config/logdir' $kohaconfig )"
227
    logdir="$( xmlstarlet sel -t -v 'yazgfs/config/logdir' $kohaconfig )"
195
- 

Return to bug 16357