mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Swap Folder and Application config steps
This commit is contained in:
		| @@ -85,58 +85,7 @@ echo "" | |||||||
| echo "This script will download, configure and start paperless-ngx." | echo "This script will download, configure and start paperless-ngx." | ||||||
|  |  | ||||||
| echo "" | echo "" | ||||||
| echo "1. Folder configuration" | echo "1. Application configuration" | ||||||
| echo "=======================" |  | ||||||
| echo "" |  | ||||||
| echo "The target folder is used to store the configuration files of " |  | ||||||
| echo "paperless. You can move this folder around after installing paperless." |  | ||||||
| echo "You will need this folder whenever you want to start, stop, update or " |  | ||||||
| echo "maintain your paperless instance." |  | ||||||
| echo "" |  | ||||||
|  |  | ||||||
| ask "Target folder" "$(pwd)/paperless-ngx" |  | ||||||
| TARGET_FOLDER=$ask_result |  | ||||||
|  |  | ||||||
| echo "" |  | ||||||
| echo "The consume folder is where paperles will search for new documents." |  | ||||||
| echo "Point this to a folder where your scanner is able to put your scanned" |  | ||||||
| echo "documents." |  | ||||||
| echo "" |  | ||||||
| echo "CAUTION: You must specify an absolute path starting with / or a relative " |  | ||||||
| echo "path starting with ./ here. Examples:" |  | ||||||
| echo "  /mnt/consume" |  | ||||||
| echo "  ./consume" |  | ||||||
| echo "" |  | ||||||
|  |  | ||||||
| ask_docker_folder "Consume folder" "$TARGET_FOLDER/consume" |  | ||||||
| CONSUME_FOLDER=$ask_result |  | ||||||
|  |  | ||||||
| echo "" |  | ||||||
| echo "The media folder is where paperless stores your documents." |  | ||||||
| echo "Leave empty and docker will manage this folder for you." |  | ||||||
| echo "Docker usually stores managed folders in /var/lib/docker/volumes." |  | ||||||
| echo "" |  | ||||||
| echo "CAUTION: If specified, you must specify an absolute path starting with /" |  | ||||||
| echo "or a relative path starting with ./ here." |  | ||||||
| echo "" |  | ||||||
|  |  | ||||||
| ask_docker_folder "Media folder" "" |  | ||||||
| MEDIA_FOLDER=$ask_result |  | ||||||
|  |  | ||||||
| echo "" |  | ||||||
| echo "The data folder is where paperless stores other data, such as your" |  | ||||||
| echo "SQLite database (if used), the search index and other data." |  | ||||||
| echo "As with the media folder, leave empty to have this managed by docker." |  | ||||||
| echo "" |  | ||||||
| echo "CAUTION: If specified, you must specify an absolute path starting with /" |  | ||||||
| echo "or a relative path starting with ./ here." |  | ||||||
| echo "" |  | ||||||
|  |  | ||||||
| ask_docker_folder "Data folder" "" |  | ||||||
| DATA_FOLDER=$ask_result |  | ||||||
|  |  | ||||||
| echo "" |  | ||||||
| echo "2. Application configuration" |  | ||||||
| echo "============================" | echo "============================" | ||||||
|  |  | ||||||
| echo "" | echo "" | ||||||
| @@ -199,6 +148,57 @@ USERMAP_UID=$ask_result | |||||||
| ask "Group ID" "$(id -g)" | ask "Group ID" "$(id -g)" | ||||||
| USERMAP_GID=$ask_result | USERMAP_GID=$ask_result | ||||||
|  |  | ||||||
|  | echo "" | ||||||
|  | echo "2. Folder configuration" | ||||||
|  | echo "=======================" | ||||||
|  | echo "" | ||||||
|  | echo "The target folder is used to store the configuration files of " | ||||||
|  | echo "paperless. You can move this folder around after installing paperless." | ||||||
|  | echo "You will need this folder whenever you want to start, stop, update or " | ||||||
|  | echo "maintain your paperless instance." | ||||||
|  | echo "" | ||||||
|  |  | ||||||
|  | ask "Target folder" "$(pwd)/paperless-ngx" | ||||||
|  | TARGET_FOLDER=$ask_result | ||||||
|  |  | ||||||
|  | echo "" | ||||||
|  | echo "The consume folder is where paperles will search for new documents." | ||||||
|  | echo "Point this to a folder where your scanner is able to put your scanned" | ||||||
|  | echo "documents." | ||||||
|  | echo "" | ||||||
|  | echo "CAUTION: You must specify an absolute path starting with / or a relative " | ||||||
|  | echo "path starting with ./ here. Examples:" | ||||||
|  | echo "  /mnt/consume" | ||||||
|  | echo "  ./consume" | ||||||
|  | echo "" | ||||||
|  |  | ||||||
|  | ask_docker_folder "Consume folder" "$TARGET_FOLDER/consume" | ||||||
|  | CONSUME_FOLDER=$ask_result | ||||||
|  |  | ||||||
|  | echo "" | ||||||
|  | echo "The media folder is where paperless stores your documents." | ||||||
|  | echo "Leave empty and docker will manage this folder for you." | ||||||
|  | echo "Docker usually stores managed folders in /var/lib/docker/volumes." | ||||||
|  | echo "" | ||||||
|  | echo "CAUTION: If specified, you must specify an absolute path starting with /" | ||||||
|  | echo "or a relative path starting with ./ here." | ||||||
|  | echo "" | ||||||
|  |  | ||||||
|  | ask_docker_folder "Media folder" "" | ||||||
|  | MEDIA_FOLDER=$ask_result | ||||||
|  |  | ||||||
|  | echo "" | ||||||
|  | echo "The data folder is where paperless stores other data, such as your" | ||||||
|  | echo "SQLite database (if used), the search index and other data." | ||||||
|  | echo "As with the media folder, leave empty to have this managed by docker." | ||||||
|  | echo "" | ||||||
|  | echo "CAUTION: If specified, you must specify an absolute path starting with /" | ||||||
|  | echo "or a relative path starting with ./ here." | ||||||
|  | echo "" | ||||||
|  |  | ||||||
|  | ask_docker_folder "Data folder" "" | ||||||
|  | DATA_FOLDER=$ask_result | ||||||
|  |  | ||||||
| echo "" | echo "" | ||||||
| echo "3. Login credentials" | echo "3. Login credentials" | ||||||
| echo "====================" | echo "====================" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Quinn Casey
					Quinn Casey