From ccd4fe5c490f3885615a01900ac34bc099735815 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 17 Aug 2014 18:05:24 +0200 Subject: build-remote.pl: Provide defaults for $NIX_CURRENT_LOAD and $NIX_REMOTE_SYSTEMS --- scripts/build-remote.pl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build-remote.pl.in b/scripts/build-remote.pl.in index ab9392bb0280..89d3a43cc655 100755 --- a/scripts/build-remote.pl.in +++ b/scripts/build-remote.pl.in @@ -48,8 +48,8 @@ my $loadIncreased = 0; my ($localSystem, $maxSilentTime, $printBuildTrace, $buildTimeout) = @ARGV; -my $currentLoad = $ENV{"NIX_CURRENT_LOAD"}; -my $conf = $ENV{"NIX_REMOTE_SYSTEMS"}; +my $currentLoad = $ENV{"NIX_CURRENT_LOAD"} // "/run/nix/current-load"; +my $conf = $ENV{"NIX_REMOTE_SYSTEMS"} // "@sysconfdir@/nix/machines"; sub openSlotLock { -- cgit 1.4.1