mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Merge pull request #223 from isyndicate/release-task-ownership-fix-042915
resultFetch is always false when owner is specified in config
This commit is contained in:
		
						commit
						bbefc65888
					
				@ -70,18 +70,16 @@ class ReleaseTask extends AbstractTask implements IsReleaseAware, SkipOnOverride
 | 
			
		||||
                    if (!empty($infoArray[3])) {
 | 
			
		||||
                        $group = $infoArray[3];
 | 
			
		||||
                    }
 | 
			
		||||
                    $userGroup = $user . ':' . $group;
 | 
			
		||||
                }
 | 
			
		||||
                $userGroup = $user . ':' . $group;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if ($resultFetch && $userGroup != '') {
 | 
			
		||||
                $command = 'chown -R ' . $userGroup . ' ' . $currentCopy
 | 
			
		||||
                    . ' && '
 | 
			
		||||
                    . 'chown ' . $userGroup . ' ' . $releasesDirectory;
 | 
			
		||||
                $result = $this->runCommandRemote($command);
 | 
			
		||||
                if (!$result) {
 | 
			
		||||
                    return $result;
 | 
			
		||||
                }
 | 
			
		||||
            $command = 'chown -R ' . $userGroup . ' ' . $currentCopy
 | 
			
		||||
                . ' && '
 | 
			
		||||
                . 'chown ' . $userGroup . ' ' . $releasesDirectory;
 | 
			
		||||
            $result = $this->runCommandRemote($command);
 | 
			
		||||
            if (!$result) {
 | 
			
		||||
                return $result;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // Switch symlink and change owner
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user