Also cosmetic: use a consistent name on the interface as well as internally. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
		
			
				
	
	
		
			11 lines
		
	
	
		
			233 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			233 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
USER_ID=${USER_ID:-30000}
 | 
						|
 | 
						|
# Create a non-root user that will perform the actual build
 | 
						|
id builder 2>/dev/null || \
 | 
						|
    useradd --uid $USER_ID --create-home --home-dir /builder builder
 | 
						|
 | 
						|
cd /builder
 | 
						|
exec gosu builder "$@"
 |