Explorar o código

Merge pull request #3695 from jakesmith/rsync-ssh-noprompt

HPCC-8287 Avoid rsync prompt in thor slave script

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=12) %!d(string=hai) anos
pai
achega
c41e6309f2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      initfiles/componentfiles/thor/start_slaves

+ 2 - 2
initfiles/componentfiles/thor/start_slaves

@@ -68,8 +68,8 @@ ulimit -n $handlelimit
 echo "slave(s) starting `date`"
 
 # sync to current master thorgroup
-echo rsync $master:$instancedir/thorgroup $instancedir/thorgroup.slave
-rsync $master:$instancedir/thorgroup $instancedir/thorgroup.slave
+echo rsync -e "ssh -o StrictHostKeyChecking=no" $master:$instancedir/thorgroup $instancedir/thorgroup.slave
+rsync -e "ssh -o StrictHostKeyChecking=no" $master:$instancedir/thorgroup $instancedir/thorgroup.slave
 
 let "slavenum = 1";
 for slave in $(cat $instancedir/thorgroup.slave); do