forked from ungleich-public/cdist
		
	Better bugfix:
- Download the docker-compose binary first to /tmp then move it to its target location
This commit is contained in:
		
					parent
					
						
							
								7a5244bf7c
							
						
					
				
			
			
				commit
				
					
						6fa7bfbfb5
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -22,6 +22,7 @@
 | 
			
		|||
version="$(cat "$__object/parameter/version")"
 | 
			
		||||
 | 
			
		||||
# Download docker-compose file
 | 
			
		||||
    echo 'if [ ! -e /usr/local/bin/docker-compose ]; then curl -L "https://github.com/docker/compose/releases/download/'${version}'/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose ; fi'
 | 
			
		||||
    echo 'curl -L "https://github.com/docker/compose/releases/download/'${version}'/docker-compose-$(uname -s)-$(uname -m)" -o /tmp/docker-compose'
 | 
			
		||||
    echo 'mv /tmp/docker-compose /usr/local/bin/docker-compose'
 | 
			
		||||
# Change permissions
 | 
			
		||||
echo 'chmod +x /usr/local/bin/docker-compose'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue