diff --git a/src/script/hydra_server.pl.in b/src/script/hydra_server.pl.in index 66917696..5703dbe3 100755 --- a/src/script/hydra_server.pl.in +++ b/src/script/hydra_server.pl.in @@ -12,6 +12,7 @@ use Getopt::Long; use Pod::Usage; use FindBin; use lib "$FindBin::Bin/../lib"; +use Hydra::Helper::Nix; my $debug = 0; my $fork = 0; @@ -27,6 +28,8 @@ my $follow_symlinks = 0; my @argv = @ARGV; +$ENV{'HYDRA_CONFIG'} = getHydraConf if ! $ENV{'HYDRA_CONFIG'} ; + GetOptions( 'debug|d' => \$debug, 'fork' => \$fork,