mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Fixes minor linting
This commit is contained in:
		@@ -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[@]}"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user