mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-26 08:12:34 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			306 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			306 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
| #!/command/with-contenv /usr/bin/bash
 | |
| # shellcheck shell=bash
 | |
| 
 | |
| set -e
 | |
| 
 | |
| cd "${PAPERLESS_SRC_DIR}"
 | |
| 
 | |
| if [[ $(id -u) == 0 ]]; then
 | |
| 	s6-setuidgid paperless python3 manage.py document_importer "$@"
 | |
| elif [[ $(id -un) == "paperless" ]]; then
 | |
| 	python3 manage.py document_importer "$@"
 | |
| else
 | |
| 	echo "Unknown user."
 | |
| fi
 |