mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
chown/chmod files during deploy within their correct scripts, instead of in the parent deploy script
This commit is contained in:
parent
306a77ce96
commit
4baea8536d
3 changed files with 17 additions and 6 deletions
|
@ -211,3 +211,9 @@ foreach($groups as $group){
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Set ownership and permissions
|
||||
// We don't use PHP's built in chown/chmod chmod can't accept strings
|
||||
// The `chmod +X` command, with a capital X, makes only matched directories executable.
|
||||
exec('sudo chown --preserve-root --recursive se:committers ' . escapeshellarg($webRoot) . '/bulk-downloads/*/');
|
||||
exec('sudo chmod --preserve-root --recursive a+r,ug+w,a+X ' . escapeshellarg($webRoot) . '/bulk-downloads/*/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue