mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-02 18:47:10 -05:00 
			
		
		
		
	Fixes minor linting
This commit is contained in:
		
							parent
							
								
									6b8a21d2b0
								
							
						
					
					
						commit
						d5c27a95aa
					
				@ -95,7 +95,7 @@ initialize() {
 | 
				
			|||||||
	done
 | 
						done
 | 
				
			||||||
	set -e
 | 
						set -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	${gosu_cmd[@]} /sbin/docker-prepare.sh
 | 
						"${gosu_cmd[@]}" /sbin/docker-prepare.sh
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install_languages() {
 | 
					install_languages() {
 | 
				
			||||||
@ -138,7 +138,7 @@ install_languages() {
 | 
				
			|||||||
echo "Paperless-ngx docker container starting..."
 | 
					echo "Paperless-ngx docker container starting..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
gosu_cmd=(gosu paperless)
 | 
					gosu_cmd=(gosu paperless)
 | 
				
			||||||
if [ $(id -u) == $(id -u paperless) ]; then
 | 
					if [ "$(id -u)" == "$(id -u paperless)" ]; then
 | 
				
			||||||
	gosu_cmd=()
 | 
						gosu_cmd=()
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -151,7 +151,7 @@ initialize
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if [[ "$1" != "/"* ]]; then
 | 
					if [[ "$1" != "/"* ]]; then
 | 
				
			||||||
	echo Executing management command "$@"
 | 
						echo Executing management command "$@"
 | 
				
			||||||
	exec ${gosu_cmd[@]} python3 manage.py "$@"
 | 
						exec "${gosu_cmd[@]}" python3 manage.py "$@"
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
	echo Executing "$@"
 | 
						echo Executing "$@"
 | 
				
			||||||
	exec "$@"
 | 
						exec "$@"
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
rootless_args=()
 | 
					rootless_args=()
 | 
				
			||||||
if [ $(id -u) == $(id -u paperless) ]; then
 | 
					if [ "$(id -u)" == "$(id -u paperless)" ]; then
 | 
				
			||||||
	rootless_args=(
 | 
						rootless_args=(
 | 
				
			||||||
		--user
 | 
							--user
 | 
				
			||||||
		paperless
 | 
							paperless
 | 
				
			||||||
@ -12,4 +12,4 @@ if [ $(id -u) == $(id -u paperless) ]; then
 | 
				
			|||||||
	)
 | 
						)
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/usr/local/bin/supervisord -c /etc/supervisord.conf ${rootless_args[@]}
 | 
					/usr/local/bin/supervisord -c /etc/supervisord.conf "${rootless_args[@]}"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user