mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 17:10: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 .= ' && '
 | 
					            	$command .= ' && '
 | 
				
			||||||
                          . 'chown -h ' . $userGroup . ' ' . $symlink
 | 
					                          . 'chown -h ' . $userGroup . ' ' . $symlink
 | 
				
			||||||
                          . ' && '
 | 
					                          . ' && '
 | 
				
			||||||
                          . 'chown -R ' . $userGroup . ' ' . $currentCopy;
 | 
					                          . 'chown -R ' . $userGroup . ' ' . $currentCopy
 | 
				
			||||||
 | 
					                          . ' && '
 | 
				
			||||||
 | 
					                          . 'chown ' . $userGroup . ' ' . $releasesDirectory;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            $result = $this->runCommandRemote($command);
 | 
					            $result = $this->runCommandRemote($command);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // Set Directory Releases to same owner
 | 
					 | 
				
			||||||
            $result = $this->runCommandRemote('chown ' . $userGroup . ' ' . $releasesDirectory);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            return $result;
 | 
					            return $result;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user