From d8d71ea4a3c7881681a9624c2f5234cb16bb347d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 18 Oct 2017 15:33:55 +0200 Subject: [PATCH] hydra-server: Use server_store_uri instead of store_uri, if set The store_uri may contain parameters that cause Nix to fail when running under the hydra-server user (e.g. the signing key). --- src/lib/Hydra/Helper/Nix.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/Nix.pm b/src/lib/Hydra/Helper/Nix.pm index f4c66f92..07f266e3 100644 --- a/src/lib/Hydra/Helper/Nix.pm +++ b/src/lib/Hydra/Helper/Nix.pm @@ -496,7 +496,7 @@ sub restartBuilds($$) { sub getStoreUri { my $config = getHydraConfig(); - return $config->{'store_uri'} // "auto"; + return $config->{'server_store_uri'} // $config->{'store_uri'} // "auto"; }