Skip to content

Commit 00de178

Browse files
committed
Fixing permission issues
1 parent 553c028 commit 00de178

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/convert.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ downloadPdfFromHtmlFile(inputHtmlFile, tempFile)
4848
// Copy from tmp to project directory with proper permissions
4949
const fs = require('fs');
5050
fs.copyFileSync(tempFile, outputFile);
51-
console.log(`PDF ${outputFile} copied to project directory`);
51+
// Set permissions to rw for everybody (664)
52+
fs.chmodSync(outputFile, 0o664);
53+
console.log(`PDF ${outputFile} copied to project directory with rw permissions for everybody`);
5254
})
5355
.catch((error) => console.error("Error:", error));

0 commit comments

Comments
 (0)