diff --git a/concourse/upload.sh b/concourse/upload.sh index c5160f8..3700a93 100755 --- a/concourse/upload.sh +++ b/concourse/upload.sh @@ -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/