Task to change permissions #2716
benoitchantre
started this conversation in
General
Replies: 1 comment 1 reply
-
Why not just use a task for it? task('chmod_files', function () {
cd('{{release_path}}');
run('chmod 600 public/.user.ini');
run('chmod 400 public/wp-config.php');
run('chmod 444 public/wp-content/uploads/.htaccess');
}); Almost the same amount of lines. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We can make some directories writable, but not the opposite (read only).
I think it would be great to be able to set the permissions of files and directories with the desired values.
Maybe a task that could take as parameter an array of files/dirs as keys and the desired permission as value.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions