mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 07:35:56 +02:00
move config to addons_config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 #
|
||||
|
||||
16
paperless_ng/rootfs/etc/cont-init.d/20-folders.sh
Normal file
16
paperless_ng/rootfs/etc/cont-init.d/20-folders.sh
Normal 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
|
||||
Reference in New Issue
Block a user