فهرست منبع

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 12 سال پیش
والد
کامیت
c41e6309f2
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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