X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=Makefile.PL;h=08030086a62dda89136d260f12b8d9bb71cb7edb;hb=723593d19ce070250ac638e72b0be6a701dbf958;hp=3f148658caaf26df78400026958d294c7b4e826e;hpb=82863982795fff4cc3518a3bee3918e2de57397a;p=koha.git diff --git a/Makefile.PL b/Makefile.PL index 3f148658ca..08030086a6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -841,7 +841,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