mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Updates install script to split + seperated OCR languages to spaces for installation script
This commit is contained in:
		| @@ -1,4 +1,4 @@ | |||||||
| #!/bin/bash | #!/usr/bin/env bash | ||||||
|  |  | ||||||
| ask() { | ask() { | ||||||
| 	while true ; do | 	while true ; do | ||||||
| @@ -319,7 +319,10 @@ wget "https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/docker/ | |||||||
|  |  | ||||||
| SECRET_KEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 64 | head -n 1) | SECRET_KEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 64 | head -n 1) | ||||||
|  |  | ||||||
| DEFAULT_LANGUAGES="deu eng fra ita spa" | DEFAULT_LANGUAGES=("deu eng fra ita spa") | ||||||
|  |  | ||||||
|  | _split_langs="${OCR_LANGUAGE//+/ }" | ||||||
|  | read -r -a OCR_LANGUAGES_ARRAY <<< "${_split_langs}" | ||||||
|  |  | ||||||
| { | { | ||||||
| 	if [[ ! $URL == "" ]] ; then | 	if [[ ! $URL == "" ]] ; then | ||||||
| @@ -334,8 +337,8 @@ DEFAULT_LANGUAGES="deu eng fra ita spa" | |||||||
| 	echo "PAPERLESS_TIME_ZONE=$TIME_ZONE" | 	echo "PAPERLESS_TIME_ZONE=$TIME_ZONE" | ||||||
| 	echo "PAPERLESS_OCR_LANGUAGE=$OCR_LANGUAGE" | 	echo "PAPERLESS_OCR_LANGUAGE=$OCR_LANGUAGE" | ||||||
| 	echo "PAPERLESS_SECRET_KEY=$SECRET_KEY" | 	echo "PAPERLESS_SECRET_KEY=$SECRET_KEY" | ||||||
| 	if [[ ! " ${DEFAULT_LANGUAGES[*]} " =~ ${OCR_LANGUAGE} ]] ; then | 	if [[ ! ${DEFAULT_LANGUAGES[*]} =~ ${OCR_LANGUAGES_ARRAY[*]} ]] ; then | ||||||
| 		echo "PAPERLESS_OCR_LANGUAGES=$OCR_LANGUAGE" | 		echo "PAPERLESS_OCR_LANGUAGES=${OCR_LANGUAGES_ARRAY[*]}" | ||||||
| 	fi | 	fi | ||||||
| } > docker-compose.env | } > docker-compose.env | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Trenton Holmes
					Trenton Holmes