mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-18 13:46:40 +02:00
Merge f035322e85
into 8ab3a25a72
This commit is contained in:
commit
d9e613624f
|
@ -34,10 +34,19 @@ class ApplyFaclsTask extends AbstractTask implements IsReleaseAware
|
|||
}
|
||||
|
||||
$folders = $this->getParameter('folders', []);
|
||||
$recursive = $this->getParameter('recursive', false) ? ' -R ' : ' ';
|
||||
|
||||
$flags = array();
|
||||
if ($this->getParameter('default', false)) {
|
||||
$flags[] = 'd';
|
||||
}
|
||||
if ($this->getParameter('recursive', false)) {
|
||||
$flags[] = 'R';
|
||||
}
|
||||
|
||||
$flagStr = ($flags) ? ' -'.implode('', $flags).' ' : ' ';
|
||||
|
||||
foreach ($folders as $folder) {
|
||||
$this->runCommandRemote("setfacl$recursive-m $aclParam $currentCopy/$folder", $output);
|
||||
$this->runCommandRemote("setfacl$flagStr-m $aclParam $currentCopy/$folder", $output);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue