mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Merge pull request #60 from tonynelson19/patch-1
Only call chown on releases if there's a userGroup
This commit is contained in:
		
						commit
						b98082b96f
					
				@ -59,14 +59,13 @@ class ReleaseTask extends AbstractTask implements IsReleaseAware, SkipOnOverride
 | 
			
		||||
            	$command .= ' && '
 | 
			
		||||
                          . 'chown -h ' . $userGroup . ' ' . $symlink
 | 
			
		||||
                          . ' && '
 | 
			
		||||
                          . 'chown -R ' . $userGroup . ' ' . $currentCopy;
 | 
			
		||||
                          . 'chown -R ' . $userGroup . ' ' . $currentCopy
 | 
			
		||||
                          . ' && '
 | 
			
		||||
                          . 'chown ' . $userGroup . ' ' . $releasesDirectory;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            $result = $this->runCommandRemote($command);
 | 
			
		||||
 | 
			
		||||
            // Set Directory Releases to same owner
 | 
			
		||||
            $result = $this->runCommandRemote('chown ' . $userGroup . ' ' . $releasesDirectory);
 | 
			
		||||
 | 
			
		||||
            return $result;
 | 
			
		||||
 | 
			
		||||
        } else {
 | 
			
		||||
@ -74,4 +73,4 @@ class ReleaseTask extends AbstractTask implements IsReleaseAware, SkipOnOverride
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user