mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-29 10:40:22 +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', []);
|
$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) {
|
foreach ($folders as $folder) {
|
||||||
$this->runCommandRemote("setfacl$recursive-m $aclParam $currentCopy/$folder", $output);
|
$this->runCommandRemote("setfacl$flagStr-m $aclParam $currentCopy/$folder", $output);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue