forked from lix-project/hydra
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:
parent
f39c13b2ff
commit
d8d71ea4a3
|
@ -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";
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue