Browse Source

Tweaks on file permissions for releases.

1.0
Andrs Montaez 13 years ago
parent
commit
de772028bb
  1. 6
      Mage/Task/BuiltIn/Deployment/Releases.php
  2. 2
      bin/mage
  3. 2
      bin/mage.php

6
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;

2
bin/mage

@ -1,5 +1,5 @@
#!/bin/sh
#VERSION:0.9.6
#VERSION:0.9.7
SCRIPT=$(readlink -f $0)
DIR=$(dirname $SCRIPT)

2
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';

Loading…
Cancel
Save