Skip to content

Commit

Permalink
Update upload.sh
Browse files Browse the repository at this point in the history
update perms on .ssh folder
  • Loading branch information
kwbyron authored and spartan782 committed Apr 29, 2021
1 parent 4549395 commit 7aeac32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion concourse/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ mkdir -p /root/.ssh
echo "$LOCAL_MIRROR_PRIVATE" > "/root/.ssh/id_ed25519"
set -x
echo "$LOCAL_MIRROR_PUBLIC" > "/root/.ssh/id_ed25519.pub"
# change the permissions on the keys
# change the permissions on the .ssh folder
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/
Expand Down

0 comments on commit 7aeac32

Please sign in to comment.