mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Only call chown on releases if there's a userGroup
This commit is contained in:
		
							parent
							
								
									23b59869ec
								
							
						
					
					
						commit
						ea9c83b07f
					
				@ -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