Skip to content

Commit

Permalink
Update upload.sh
Browse files Browse the repository at this point in the history
remove the port from rsync command
  • Loading branch information
kwbyron authored and spartan782 committed Apr 29, 2021
1 parent 7d2db25 commit 10c3c29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion concourse/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ LOCAL_MIRROR_HOST=$3
LOCAL_MIRROR_REPO=$4
LOCAL_MIRROR_PRIVATE=$5
LOCAL_MIRROR_PUBLIC=$6
LOCAL_MIRROR_IP=$7

yum install rsync openssh-clients -y
echo "exporting hidded keys for password less sync"
Expand All @@ -18,6 +19,6 @@ chmod -R 0700 /root/.ssh/
#change permission on the keys
chmod 0600 /root/.ssh/*
# Upload to local mirror
rsync -e "ssh -o StrictHostKeyChecking=no -i /root/.ssh/id_ed25519" -rv rocknsm-iso/ $LOCAL_MIRROR_USER@$LOCAL_MIRROR_HOST:/var/www/mirror/public/isos/$LOCAL_MIRROR_REPO/
rsync -e "ssh -o StrictHostKeyChecking=no -i /root/.ssh/id_ed25519" -rv rocknsm-iso/ $LOCAL_MIRROR_USER@$LOCAL_MIRROR_IP:/var/www/mirror/public/isos/$LOCAL_MIRROR_REPO/
# Sync to public mirror
ssh -i /root/.ssh/id_ed25519 -o StrictHostKeyChecking=no admin@${LOCAL_MIRROR_HOST} 'rsync -rlvtP -e "ssh -i ~/.ssh/mirror_sync" /var/www/mirror/public/ [email protected]:/var/www/mirror/ --delete'

0 comments on commit 10c3c29

Please sign in to comment.