Browse Source

honor the DESTDIR environement variable when set

for exemple: when you use
install_misc/environment_Makefile.PL DESTDIR=$HOME by default but koha
is installed in $HOME/koha-dev that is not expected!

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
3.2.x
Marc Chantreux 15 years ago
committed by Henri-Damien LAURENT
parent
commit
6406ae9eea
  1. 5
      Makefile.PL

5
Makefile.PL

@ -850,7 +850,10 @@ be run from the current directory.
Configuration directory:);
# FIXME - home directory portability consideration apply
$install_base_default = (exists $ENV{'HOME'}) ? "$ENV{'HOME'}/koha-dev" : "$defaults->{'INSTALL_BASE'}-dev";
$install_base_default =
$ENV{DESTDIR}
|| ( exists $ENV{HOME} ? "$ENV{HOME}/koha-dev" : "$defaults->{'INSTALL_BASE'}-dev" )
;
} elsif ($config{'INSTALL_MODE'} eq 'single') {
$msg = "\nPlease specify the directory in which to install Koha";
# FIXME -- we're assuming under a 'single' mode install

Loading…
Cancel
Save