revert commit 26130, use hardcoded default value for HYDRA_DATA (/var/lib/hydra)

This commit is contained in:
Rob Vermaas 2011-03-07 12:30:27 +00:00
parent 0439e7efb7
commit f95ded45a5
3 changed files with 3 additions and 4 deletions

View file

@ -55,7 +55,6 @@ AC_CONFIG_FILES([
src/sql/Makefile
src/xsl/Makefile
src/lib/Makefile
src/lib/Hydra/Helper/Nix.pm
src/root/Makefile
src/script/Makefile

View file

@ -24,7 +24,8 @@ sub isValidPath {
sub getHydraPath {
my $dir = $ENV{"HYDRA_DATA"} || "@localstatedir@/lib/hydra";
my $dir = $ENV{"HYDRA_DATA"} || "/var/lib/hydra";
die "The HYDRA_DATA directory does not exist!\n" unless -d $dir;
return $dir;
}

View file

@ -10,8 +10,7 @@ PERL_MODULES = \
$(wildcard Hydra/Base/Controller/*.pm)
EXTRA_DIST = \
$(PERL_MODULES) \
Hydra/Helper/Nix.pm.in
$(PERL_MODULES)
hydradir = $(libexecdir)/hydra/lib
nobase_hydra_DATA = $(PERL_MODULES)