Skip to content

Commit b0ee277

Browse files
committed
fix upload
1 parent 5b651b9 commit b0ee277

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/ci/emscripten/examples_to_build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ fi
5757

5858
if [ "$DO_UPLOAD" = "true" ]; then
5959
echo "upload 2/2 - time for rsync"
60+
61+
SERVER_PUBLIC_KEY=$(ssh-keyscan -p 22 openFrameworks.cc)
62+
echo "$SERVER_PUBLIC_KEY" >> "$HOME/.ssh/known_hosts"
63+
6064
remote_path="/home/ofadmin/openFrameworks.cc/examples/"
61-
rsync -avz -e "ssh -i $key_file" "$out_folder/" "$GA_EXAMPLES_USER@$GA_EXAMPLES_SERVER:$remote_path"
65+
rsync --chmod=Du=rwx,Dg=rwx,Do=rx,Fu=rw,Fg=rw,Fo=r -avz -e "ssh -i $key_file" "$out_folder/" "$GA_EXAMPLES_USER@$GA_EXAMPLES_SERVER:$remote_path"
6266
rm -f "$key_file"
6367
fi

0 commit comments

Comments
 (0)