Merge branch 'master' of https://github.com/jimsalterjrs/sanoid
This commit is contained in:
commit
ef601eb96b
2
syncoid
2
syncoid
|
@ -1471,7 +1471,7 @@ sub getssh {
|
|||
if ($rhost ne "") {
|
||||
if ($remoteuser eq 'root' || $args{'no-privilege-elevation'}) { $isroot = 1; } else { $isroot = 0; }
|
||||
# now we need to establish a persistent master SSH connection
|
||||
$socket = "/tmp/syncoid-$rhost-" . time();
|
||||
$socket = "/tmp/syncoid-$rhost-" . time() . "-" . int(rand(10000));
|
||||
|
||||
open FH, "$sshcmd -M -S $socket -o ControlPersist=1m $args{'sshport'} $rhost exit |";
|
||||
close FH;
|
||||
|
|
Loading…
Reference in New Issue