mirror of
https://github.com/hak8or/proxmox_scripts.git
synced 2025-01-15 11:57:57 +00:00
Handle ssh-ing into a container built on an old IP address.
This commit is contained in:
parent
a39c5e18c6
commit
84c125191a
@ -80,7 +80,8 @@ FN_copyandorexec(){
|
|||||||
# Use Rsync in case it's many files.
|
# Use Rsync in case it's many files.
|
||||||
# Flag -a: Archive (recursive, copy symbolic links, modification times, etc)
|
# Flag -a: Archive (recursive, copy symbolic links, modification times, etc)
|
||||||
# Flag -z: Compress (use compression when sending)
|
# 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.
|
# Execute the presumed script inside the directory.
|
||||||
ssh root@$2 "cd /tmp/$1; ./$1.sh"
|
ssh root@$2 "cd /tmp/$1; ./$1.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user