From 84c125191a5506e3aa77f2b414473cc4ddb9f566 Mon Sep 17 00:00:00 2001 From: hak8or Date: Wed, 15 Nov 2017 00:27:50 -0500 Subject: [PATCH] Handle ssh-ing into a container built on an old IP address. --- deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 7257f69..27f9c19 100644 --- a/deploy.sh +++ b/deploy.sh @@ -80,7 +80,8 @@ FN_copyandorexec(){ # Use Rsync in case it's many files. # Flag -a: Archive (recursive, copy symbolic links, modification times, etc) # Flag -z: Compress (use compression when sending) - rsync -az $1 root@[$2]:/tmp + # Flag -e: specifies remote shell to use (to disable fingerprint verification) + rsync -aze "ssh -q -o StrictHostKeyChecking=no" $1 root@[$2]:/tmp # Execute the presumed script inside the directory. ssh root@$2 "cd /tmp/$1; ./$1.sh"