This commit is contained in:
parent
81a7ee2c90
commit
ebaa9f9ff3
1 changed files with 6 additions and 1 deletions
7
.github/rsync.sh
vendored
7
.github/rsync.sh
vendored
|
@ -3,7 +3,7 @@
|
|||
set -Eeuo pipefail
|
||||
set -x
|
||||
|
||||
apt-get update -y && apt-get install -y rsync openssh-client
|
||||
apt-get update -y && apt-get install -y rsync openssh-client keychain
|
||||
|
||||
# README.md /tmp/ files.l3d.ch files ./secret_ssh_key
|
||||
printf "Add SSH Private Key"
|
||||
|
@ -12,4 +12,9 @@ chmod 700 ~/.ssh
|
|||
mv $5 ~/.ssh/id_ed25519
|
||||
chmod 400 ~/.ssh/id_ed25519
|
||||
ssh-keyscan -t ed25519 $3 | tee -a ~/.ssh/known_hosts
|
||||
|
||||
printf "Adding SSH to chain"
|
||||
eval $(keychain --eval --quiet id_ed25519)
|
||||
|
||||
printf "Starting rsync"
|
||||
rsync --progress $1 $4@$3:$2
|
||||
|
|
Loading…
Reference in a new issue