diff --git a/Mage/Task/BuiltIn/Deployment/Releases.php b/Mage/Task/BuiltIn/Deployment/Releases.php index d4ec3c6..20cfb56 100644 --- a/Mage/Task/BuiltIn/Deployment/Releases.php +++ b/Mage/Task/BuiltIn/Deployment/Releases.php @@ -17,12 +17,14 @@ class Mage_Task_BuiltIn_Deployment_Releases $currentCopy = $releasesDirectory . '/' . $this->_config->getReleaseId(); $userGroup = ''; - $resultFetch = $this->_runRemoteCommand('ls -ld ' . $currentCopy . ' | awk \'{print \$3\":\"\$4}\'', $userGroup); + $resultFetch = $this->_runRemoteCommand('ls -ld ' . $symlink . ' | awk \'{print \$3\":\"\$4}\'', $userGroup); $command = 'rm -f ' . $symlink . ' && ' . 'ln -sf ' . $currentCopy . ' ' . $symlink . ' && ' - . 'chown -h ' . $userGroup . ' ' . $symlink; + . 'chown -h ' . $userGroup . ' ' . $symlink + . ' && ' + . 'chown -R ' . $userGroup . ' ' . $currentCopy; $result = $this->_runRemoteCommand($command); return $result; diff --git a/bin/mage b/bin/mage index 6648ba4..8cb2774 100755 --- a/bin/mage +++ b/bin/mage @@ -1,5 +1,5 @@ #!/bin/sh -#VERSION:0.9.6 +#VERSION:0.9.7 SCRIPT=$(readlink -f $0) DIR=$(dirname $SCRIPT) diff --git a/bin/mage.php b/bin/mage.php index 7a05b18..642b0e3 100644 --- a/bin/mage.php +++ b/bin/mage.php @@ -24,7 +24,7 @@ date_default_timezone_set('UTC'); $baseDir = dirname(dirname(__FILE__)); -define('MAGALLANES_VERSION', '0.9.6'); +define('MAGALLANES_VERSION', '0.9.7'); require_once $baseDir . '/Mage/spyc.php'; require_once $baseDir . '/Mage/Autoload.php';