Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

set permissions on asset directories

Jason Kentcadaeba05237
diff --git a/tasks/upload.js b/tasks/upload.js
index 3a7f2a845..f24754582 100755
--- a/tasks/upload.js
+++ b/tasks/upload.js
@@ -122,6 +122,10 @@ async function upload() {
cd ${root}/${name} &&
tar xf ${worldview} --warning=no-unknown-keyword --strip-components=1 --touch`;
result = await ssh.execCommand(cmd);
+ // Set permissions for Grou and Other for Read and Execute for images, config metadata, and brand
+ cmd = `chmod -R go+xr ${root}/${name}/config
+ && chmod -R go+xr ${root}/${name}/images
+ && chmod -R go+xr ${root}/${name}/brand`;
process.stdout.write(result.stdout);
process.stderr.write(result.stderr);
ssh.dispose();