mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-29 02:30:05 +02:00
correct namespace on apply facl task class
This commit is contained in:
parent
36d483d0a9
commit
b1f4705472
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
namespace Mage\Task\BuiltIn\Filesystem;
|
||||
|
||||
namespace Mage\Task\Newcraft\Filesystem;
|
||||
|
||||
use Mage\Task\AbstractTask;
|
||||
use Mage\Task\SkipException;
|
||||
|
@ -29,9 +30,6 @@ class ApplyFaclsTask extends AbstractTask implements IsReleaseAware
|
|||
*/
|
||||
public function run()
|
||||
{
|
||||
$releasesDirectory = $this->getConfig()->release('directory', 'releases');
|
||||
$currentCopy = $releasesDirectory . '/' . $this->getConfig()->getReleaseId();
|
||||
|
||||
$flags = ' -'.$this->getParameter('flags', false).' ';
|
||||
|
||||
$aclParam = $this->getParameter('acl_param', '');
|
||||
|
@ -43,7 +41,9 @@ class ApplyFaclsTask extends AbstractTask implements IsReleaseAware
|
|||
|
||||
$return = true;
|
||||
foreach ($folders as $folder) {
|
||||
$execute = $this->runCommandRemote("setfacl$flags $aclParam $currentCopy/$folder", $output);
|
||||
|
||||
$aclCommand = $this->getReleasesAwareCommand('setfacl'.$flags.' '.$aclParam.' '.$folder);
|
||||
$execute = $this->runCommandRemote($aclCommand, $output);
|
||||
if(!$execute) $return = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue