This commit is contained in:
kuborgh-mspindelhirn 2017-01-02 22:49:32 +00:00 committed by GitHub
commit d9e613624f

View file

@ -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;