Commit 489e5383 authored by Amaury Martiny's avatar Amaury Martiny Committed by Thibaut Sardan
Browse files

fix: correctly set permissions on downloaded binary (#472)

* fix: correctly set permissions on downloaded binary

* Add comment
parent 674e3bf3
Pipeline #33553 passed with stages
in 9 minutes and 30 seconds
......@@ -125,7 +125,7 @@ function downloadParity () {
// Write to file and set a+x permissions
const destinationPath = `${STATIC_DIRECTORY}/${name}`;
return fsWriteFile(destinationPath, data)
.then(() => fsChmod(destinationPath, 755))
.then(() => fsChmod(destinationPath, 0o755)) // https://nodejs.org/api/fs.html#fs_fs_chmod_path_mode_callback
.then(() => destinationPath);
});
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment