1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-08-25 21:00:18 +02:00

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

View File

@ -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)) {