mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-25 02:01:52 +02:00
Merge pull request #685 from elahd/paperless-env-vars
Added paperless folder config options to addon config.
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
## 1.12.2 (04-02-2023)
|
## 1.12.2 (04-02-2023)
|
||||||
- Update to latest version from paperless-ngx/paperless-ngx
|
- Update to latest version from paperless-ngx/paperless-ngx
|
||||||
|
|
||||||
|
- Added consumption/media/data paths to addon config screen.
|
||||||
|
|
||||||
|
|
||||||
## 1.12.1 (28-01-2023)
|
## 1.12.1 (28-01-2023)
|
||||||
- Update to latest version from paperless-ngx/paperless-ngx
|
- Update to latest version from paperless-ngx/paperless-ngx
|
||||||
|
|
||||||
|
|||||||
@@ -40,11 +40,6 @@ RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
|
|||||||
if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \
|
if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \
|
||||||
if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi
|
if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi
|
||||||
|
|
||||||
ENV \
|
|
||||||
PAPERLESS_DATA_DIR=/config/addons_config/paperless_ng \
|
|
||||||
PAPERLESS_MEDIA_ROOT=/config/addons_config/paperless_ng/media \
|
|
||||||
PAPERLESS_CONSUMPTION_DIR=/config/addons_config/paperless_ng/consume
|
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
ARG MODULES="00-banner.sh 01-custom_script.sh 92-local_mounts.sh 92-smb_mounts.sh 90-config_yaml.sh"
|
ARG MODULES="00-banner.sh 01-custom_script.sh 92-local_mounts.sh 92-smb_mounts.sh 90-config_yaml.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -85,6 +85,9 @@
|
|||||||
"OCRLANG": "str?",
|
"OCRLANG": "str?",
|
||||||
"PAPERLESS_OCR_MODE": "list(skip|redo|force|skip_noarchive)?",
|
"PAPERLESS_OCR_MODE": "list(skip|redo|force|skip_noarchive)?",
|
||||||
"PAPERLESS_URL": "str?",
|
"PAPERLESS_URL": "str?",
|
||||||
|
"PAPERLESS_DATA_DIR": "str?",
|
||||||
|
"PAPERLESS_MEDIA_ROOT": "str?",
|
||||||
|
"PAPERLESS_CONSUMPTION_DIR": "str?",
|
||||||
"PGID": "int",
|
"PGID": "int",
|
||||||
"PUID": "int",
|
"PUID": "int",
|
||||||
"TZ": "str?",
|
"TZ": "str?",
|
||||||
@@ -102,6 +105,6 @@
|
|||||||
],
|
],
|
||||||
"slug": "paperless_ng",
|
"slug": "paperless_ng",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "1.12.2",
|
"version": "1.12.2-1",
|
||||||
"webui": "http://[HOST]:[PORT:8000]"
|
"webui": "http://[HOST]:[PORT:8000]"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,20 @@ export PAPERLESS_ADMIN_PASSWORD="admin"
|
|||||||
export PAPERLESS_ADMIN_USER="admin"
|
export PAPERLESS_ADMIN_USER="admin"
|
||||||
export PAPERLESS_ALLOWED_HOSTS="*"
|
export PAPERLESS_ALLOWED_HOSTS="*"
|
||||||
|
|
||||||
|
export PAPERLESS_DATA_DIR="/config/addons_config/paperless_ng"
|
||||||
|
export PAPERLESS_MEDIA_ROOT="/config/addons_config/paperless_ng/media"
|
||||||
|
export PAPERLESS_CONSUMPTION_DIR="/config/addons_config/paperless_ng/consume"
|
||||||
|
|
||||||
|
if bashio::config.has_value "PAPERLESS_DATA_DIR"; then export PAPERLESS_DATA_DIR=$(bashio::config "PAPERLESS_DATA_DIR"); fi
|
||||||
|
if bashio::config.has_value "PAPERLESS_MEDIA_ROOT"; then export PAPERLESS_MEDIA_ROOT=$(bashio::config "PAPERLESS_MEDIA_ROOT"); fi
|
||||||
|
if bashio::config.has_value "PAPERLESS_CONSUMPTION_DIR"; then export PAPERLESS_CONSUMPTION_DIR=$(bashio::config "PAPERLESS_CONSUMPTION_DIR"); fi
|
||||||
|
|
||||||
|
for folder in "$PAPERLESS_DATA_DIR" "$PAPERLESS_MEDIA_ROOT" "$PAPERLESS_CONSUMPTION_DIR"; do
|
||||||
|
mkdir -p "$folder"
|
||||||
|
chmod -R 755 "$folder"
|
||||||
|
chown -R paperless:paperless "$folder"
|
||||||
|
done
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# Define database #
|
# Define database #
|
||||||
###################
|
###################
|
||||||
|
|||||||
Reference in New Issue
Block a user