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).
This commit is contained in:
Eelco Dolstra 2017-10-18 15:33:55 +02:00
parent f39c13b2ff
commit d8d71ea4a3

View file

@ -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";
}