mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	Fix hard coded 'current' symlink path in RsyncTask
This commit is contained in:
		
							parent
							
								
									49a7e0857a
								
							
						
					
					
						commit
						35301cba8e
					
				@ -56,12 +56,13 @@ class RsyncTask extends BaseStrategyTaskAbstract implements IsReleaseAware
 | 
			
		||||
        $deployToDirectory = $this->getConfig()->deployment('to');
 | 
			
		||||
        if ($this->getConfig()->release('enabled', false) == true) {
 | 
			
		||||
            $releasesDirectory = $this->getConfig()->release('directory', 'releases');
 | 
			
		||||
            $symlink = $this->getConfig()->release('symlink', 'current');
 | 
			
		||||
 | 
			
		||||
            $currentRelease = false;
 | 
			
		||||
            $deployToDirectory = rtrim($this->getConfig()->deployment('to'), '/')
 | 
			
		||||
                               . '/' . $releasesDirectory
 | 
			
		||||
                               . '/' . $this->getConfig()->getReleaseId();
 | 
			
		||||
            $resultFetch = $this->runCommandRemote('ls -ld current | cut -d"/" -f2', $currentRelease);
 | 
			
		||||
            $resultFetch = $this->runCommandRemote('ls -ld ' . $symlink . ' | cut -d"/" -f2', $currentRelease);
 | 
			
		||||
 | 
			
		||||
            if ($resultFetch && $currentRelease) {
 | 
			
		||||
                // If deployment configuration is rsync, include a flag to simply sync the deltas between the prior release
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user