mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
* Get rid of those stupid --login tricks, it's the responsibility of
the remote system to make sure that Nix is in the $PATH.
This commit is contained in:
parent
30394a4f3f
commit
df0283ae86
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ while (@ARGV) {
|
||||||
|
|
||||||
|
|
||||||
# Ask the remote host which paths are invalid.
|
# Ask the remote host which paths are invalid.
|
||||||
open(READ, "ssh @sshOpts $sshHost bash --login -c '\"nix-store --check-validity --print-invalid @storePaths\"'|");
|
open(READ, "ssh @sshOpts $sshHost nix-store --check-validity --print-invalid @storePaths|");
|
||||||
my @missing = ();
|
my @missing = ();
|
||||||
while (<READ>) {
|
while (<READ>) {
|
||||||
chomp;
|
chomp;
|
||||||
|
@ -76,6 +76,6 @@ close READ or die;
|
||||||
if (scalar @missing > 0) {
|
if (scalar @missing > 0) {
|
||||||
my $extraOpts = "";
|
my $extraOpts = "";
|
||||||
$extraOpts .= "--sign" if $sign == 1;
|
$extraOpts .= "--sign" if $sign == 1;
|
||||||
system("nix-store --export $extraOpts @missing | $compressor | ssh @sshOpts $sshHost bash --login -c '\"$decompressor | nix-store --import\"'") == 0
|
system("nix-store --export $extraOpts @missing | $compressor | ssh @sshOpts $sshHost '$decompressor | nix-store --import'") == 0
|
||||||
or die "copying store paths to remote machine failed: $?";
|
or die "copying store paths to remote machine failed: $?";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue