move config to addons_config

This commit is contained in:
Alexandre
2021-12-29 12:57:15 +01:00
parent fc18cf345f
commit b1842412dd
38 changed files with 320 additions and 93 deletions

View File

@@ -1,3 +1,4 @@
- Cleanup: config base folder changed to /config/addons_config (thanks @bruvv)
- MultiOCR: in OCRLANG field use comma separated value. Ex: fra,deu (working)
- Manual install pikepdf
- New standardized logic for Dockerfile build and packages installation

View File

@@ -21,7 +21,7 @@ FROM ${BUILD_FROM}
# 2 Modify Image #
##################
ENV PAPERLESS_DATA_DIR=/config/paperless_ng
ENV PAPERLESS_DATA_DIR=/config/addons_config/paperless_ng
RUN \
#################
# Correct image #

View File

@@ -0,0 +1,16 @@
#!/usr/bin/with-contenv bash
slug=paperless
if [ -d /config/$slug ]; then
echo "Moving to new location /config/addons_config/$slug"
mkdir -p /config/addons_config/$slug
chmod 777 /config/addons_config/$slug
mv /config/$slug/* /config/addons_config/$slug/
fi
if [ ! -d /config/addons_config/$slug ]; then
echo "Creating /config/addons_config/$slug"
mkdir -p /config/addons_config/$slug
chmod 777 /config/addons_config/$slug
fi