Bug 22396: Make koha-sip set KOHA_HOME and KOHA_CONF correctly

This patch corrects a typo, and exports KOHA_CONF as other scripts do.

To test:
- Apply this patch
- Run:
  $ # in kohadevbox
  $ perl misc4dev/cp_debian_files.pl
- Try the new script
  $ sudo koha-sip --start kohadev
=> SUCCESS: tail -f /var/log/koha/kohadev/sip* doesn't show fatal errors
anymore
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 7128db531c)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Tomas Cohen Arazi 2019-02-22 12:00:35 -03:00 committed by Martin Renvoize
parent 37374dc82b
commit 8b570caf8a
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 4 additions and 1 deletions

View File

@ -64,7 +64,8 @@ start_sip()
if ! is_sip_running $name; then
adjust_paths_dev_install $name
export KOHA_CONF PERL5LIB
export KOHA_HOME PERL5LIB
if [ "$DEV_INSTALL" = "" ]; then
LIBDIR=$KOHA_HOME/lib
else
@ -274,6 +275,8 @@ if [ $# -gt 0 ]; then
if is_instance $name; then
export KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml"
case $op in
"start")
start_sip $name