* Respect @sysconfdir@.

This commit is contained in:
Eelco Dolstra 2010-02-03 21:13:37 +00:00
parent d0c32dc135
commit c45de33c67

View file

@ -203,7 +203,7 @@ $outputs =~ s/\n/ /g;
print "copying inputs...\n"; print "copying inputs...\n";
my $maybeSign = ""; my $maybeSign = "";
$maybeSign = "--sign" if -e "/nix/etc/nix/signing-key.sec"; $maybeSign = "--sign" if -e "@sysconfdir@/nix/signing-key.sec";
system("NIX_SSHOPTS=\"@sshOpts\" @bindir@/nix-copy-closure $hostName $maybeSign $drvPath $inputs") == 0 system("NIX_SSHOPTS=\"@sshOpts\" @bindir@/nix-copy-closure $hostName $maybeSign $drvPath $inputs") == 0
or die "cannot copy inputs to $hostName: $?"; or die "cannot copy inputs to $hostName: $?";