From 9c1f30ac809ee2c3c9d04ab95c35c1ac5dc757b7 Mon Sep 17 00:00:00 2001 From: Moritz Spindelhirn Date: Fri, 30 Oct 2015 15:58:42 +0100 Subject: [PATCH] fix acl task for non realse deployments --- Mage/Task/BuiltIn/Filesystem/ApplyFaclsTask.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Mage/Task/BuiltIn/Filesystem/ApplyFaclsTask.php b/Mage/Task/BuiltIn/Filesystem/ApplyFaclsTask.php index 116f826..757df76 100644 --- a/Mage/Task/BuiltIn/Filesystem/ApplyFaclsTask.php +++ b/Mage/Task/BuiltIn/Filesystem/ApplyFaclsTask.php @@ -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)) {