Skip to content

Commit

Permalink
Try chmod on the uploads folder
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Mar 4, 2020
1 parent c81b4a9 commit 1ed4af0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/env/lib/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ module.exports = {
spinner,
debug: config.debug,
} );

// Ensure the uploads folder is writeable, creating it if necessary.
const wpUploadsPath = path.join(
config.coreSource.path,
'wp-content/uploads'
);
await fs.mkdir( wpUploadsPath, { recursive: true } );
await fs.chmod( wpUploadsPath, 0o0767 );

await copyCoreFiles(
config.coreSource.path,
config.coreSource.testsPath
Expand Down

0 comments on commit 1ed4af0

Please sign in to comment.