forked from lix-project/hydra
revert commit 26130, use hardcoded default value for HYDRA_DATA (/var/lib/hydra)
This commit is contained in:
parent
0439e7efb7
commit
f95ded45a5
3 changed files with 3 additions and 4 deletions
|
@ -55,7 +55,6 @@ AC_CONFIG_FILES([
|
||||||
src/sql/Makefile
|
src/sql/Makefile
|
||||||
src/xsl/Makefile
|
src/xsl/Makefile
|
||||||
src/lib/Makefile
|
src/lib/Makefile
|
||||||
src/lib/Hydra/Helper/Nix.pm
|
|
||||||
src/root/Makefile
|
src/root/Makefile
|
||||||
|
|
||||||
src/script/Makefile
|
src/script/Makefile
|
||||||
|
|
|
@ -24,7 +24,8 @@ sub isValidPath {
|
||||||
|
|
||||||
|
|
||||||
sub getHydraPath {
|
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;
|
return $dir;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,8 +10,7 @@ PERL_MODULES = \
|
||||||
$(wildcard Hydra/Base/Controller/*.pm)
|
$(wildcard Hydra/Base/Controller/*.pm)
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
$(PERL_MODULES) \
|
$(PERL_MODULES)
|
||||||
Hydra/Helper/Nix.pm.in
|
|
||||||
|
|
||||||
hydradir = $(libexecdir)/hydra/lib
|
hydradir = $(libexecdir)/hydra/lib
|
||||||
nobase_hydra_DATA = $(PERL_MODULES)
|
nobase_hydra_DATA = $(PERL_MODULES)
|
||||||
|
|
Loading…
Reference in a new issue