mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Without exec, signals aren't passed through properly. Stopping the container won't have any effect unless killed. closes #1616
		
			
				
	
	
		
			16 lines
		
	
	
		
			270 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			270 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
rootless_args=()
 | 
						|
if [ "$(id -u)" == "$(id -u paperless)" ]; then
 | 
						|
	rootless_args=(
 | 
						|
		--user
 | 
						|
		paperless
 | 
						|
		--logfile
 | 
						|
		supervisord.log
 | 
						|
		--pidfile
 | 
						|
		supervisord.pid
 | 
						|
	)
 | 
						|
fi
 | 
						|
 | 
						|
exec /usr/local/bin/supervisord -c /etc/supervisord.conf "${rootless_args[@]}"
 |