fix acl task for non realse deployments

This commit is contained in:
Moritz Spindelhirn
2015-10-30 15:58:42 +01:00
parent ac36fb29d5
commit 9c1f30ac80
@@ -24,9 +24,12 @@ class ApplyFaclsTask extends AbstractTask implements IsReleaseAware
*/
public function run()
{
$releasesDirectory = $this->getConfig()->release('directory', 'releases');
$currentCopy = $releasesDirectory . '/' . $this->getConfig()->getReleaseId();
if ($this->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)) {