[Koha-bugs] [Bug 25778] koha-plack --restart causes PERL5LIB to grow with duplicate entries
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Aug 14 02:24:31 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25778
--- Comment #5 from David Cook <dcook at prosentient.com.au> ---
(In reply to Tomás Cohen Arazi from comment #3)
> I don't understand why they accumulate.
Oh wait I see it now. It's so obvious in retrospect. Look at the scoping of
PERL5LIB in the following block of code:
if [ $# -gt 0 ]; then
# We have at least one instance name
for name in "$@"; do
if is_instance $name; then
adjust_paths_dev_install $name
export DEV_INSTALL
export KOHA_HOME
PERL5LIB=$PERL5LIB:$KOHA_HOME/installer:$KOHA_HOME/lib/installer
If you're specifying more than 1 instance name to koha-plack, it'll append
"$KOHA_HOME/installer:$KOHA_HOME/lib/installer" to PERL5LIB for each instance.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list