getConfig()->release('enabled')) { $releasesDirectory = $this->getConfig()->release('directory', 'releases'); $currentCopy = $releasesDirectory.'/'.$this->getConfig()->getReleaseId(); } else { $currentCopy = $this->getConfig()->deployment('to', '.'); } $aclParam = $this->getParameter('acl_param', ''); if (empty($aclParam)) { throw new SkipException('Parameter acl_param not set.'); } $folders = $this->getParameter('folders', array()); $recursive = $this->getParameter('recursive', false) ? ' -R ' : ' '; foreach ($folders as $folder) { $this->runCommandRemote("setfacl$recursive-m $aclParam $currentCopy/$folder", $output); } return true; } }