mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Tweaks on file permissions for releases.
This commit is contained in:
		
							parent
							
								
									6bd9d888df
								
							
						
					
					
						commit
						de772028bb
					
				@ -17,12 +17,14 @@ class Mage_Task_BuiltIn_Deployment_Releases
 | 
				
			|||||||
            $currentCopy = $releasesDirectory . '/' . $this->_config->getReleaseId();
 | 
					            $currentCopy = $releasesDirectory . '/' . $this->_config->getReleaseId();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            $userGroup = '';
 | 
					            $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
 | 
					            $command = 'rm -f ' . $symlink
 | 
				
			||||||
                     . ' && '
 | 
					                     . ' && '
 | 
				
			||||||
                     . 'ln -sf ' . $currentCopy . ' ' . $symlink
 | 
					                     . 'ln -sf ' . $currentCopy . ' ' . $symlink
 | 
				
			||||||
                     . ' && '
 | 
					                     . ' && '
 | 
				
			||||||
                     . 'chown -h ' . $userGroup . ' ' . $symlink; 
 | 
					                     . 'chown -h ' . $userGroup . ' ' . $symlink
 | 
				
			||||||
 | 
					                     . ' && '
 | 
				
			||||||
 | 
					                     . 'chown -R ' . $userGroup . ' ' . $currentCopy; 
 | 
				
			||||||
            $result = $this->_runRemoteCommand($command);
 | 
					            $result = $this->_runRemoteCommand($command);
 | 
				
			||||||
            return $result;
 | 
					            return $result;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								bin/mage
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								bin/mage
									
									
									
									
									
								
							@ -1,5 +1,5 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
#VERSION:0.9.6
 | 
					#VERSION:0.9.7
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SCRIPT=$(readlink -f $0)
 | 
					SCRIPT=$(readlink -f $0)
 | 
				
			||||||
DIR=$(dirname $SCRIPT)
 | 
					DIR=$(dirname $SCRIPT)
 | 
				
			||||||
 | 
				
			|||||||
@ -24,7 +24,7 @@ date_default_timezone_set('UTC');
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
$baseDir = dirname(dirname(__FILE__));
 | 
					$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/spyc.php';
 | 
				
			||||||
require_once $baseDir . '/Mage/Autoload.php';
 | 
					require_once $baseDir . '/Mage/Autoload.php';
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user