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