Handle ssh-ing into a container built on an old IP address.

rewrite
hak8or 5 years ago
parent a39c5e18c6
commit 84c125191a
  1. 3
      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"

Loading…
Cancel
Save