mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Don't assume the /tmp folder is where the user wants to place the scratch directory (#5948)
This commit is contained in:
		| @@ -90,13 +90,13 @@ initialize() { | ||||
| 		fi | ||||
| 	done | ||||
|  | ||||
| 	local -r tmp_dir="/tmp/paperless" | ||||
| 	echo "Creating directory ${tmp_dir}" | ||||
| 	local -r tmp_dir="${PAPERLESS_SCRATCH_DIR:=/tmp/paperless}" | ||||
| 	echo "Creating directory scratch directory ${tmp_dir}" | ||||
| 	mkdir --parents "${tmp_dir}" | ||||
|  | ||||
| 	set +e | ||||
| 	echo "Adjusting permissions of paperless files. This may take a while." | ||||
| 	chown -R paperless:paperless ${tmp_dir} | ||||
| 	chown -R paperless:paperless "${tmp_dir}" | ||||
| 	for dir in \ | ||||
| 		"${export_dir}" \ | ||||
| 		"${DATA_DIR}" \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Trenton H
					Trenton H