mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-09-07 02:13:32 +02:00
fix: bake DOWNLOAD_FOLDER default into image ENV so it's inherited by all services
This commit is contained in:
@@ -15,13 +15,14 @@ LABEL \
|
|||||||
io.hass.version="${BUILD_VERSION}" \
|
io.hass.version="${BUILD_VERSION}" \
|
||||||
maintainer="petruknw"
|
maintainer="petruknw"
|
||||||
|
|
||||||
# Set data dir via Docker ENV so it's available before any shell script runs.
|
# Bake paths into the image so they're available before any shell runs.
|
||||||
# /config is HA's addon_config mount point (always writable).
|
# The run script will override DOWNLOAD_FOLDER with the user's configured value.
|
||||||
ENV AURRAL_DATA_DIR=/config/data
|
ENV AURRAL_DATA_DIR=/config/data \
|
||||||
|
DOWNLOAD_FOLDER=/share/aurral/downloads \
|
||||||
|
WEEKLY_FLOW_FOLDER=/share/aurral/downloads/weekly-flow
|
||||||
|
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
||||||
RUN chmod a+x /etc/services.d/aurral/run \
|
RUN chmod a+x /etc/services.d/aurral/run \
|
||||||
&& chmod a+x /usr/local/bin/docker-entrypoint.sh \
|
&& chmod a+x /usr/local/bin/docker-entrypoint.sh \
|
||||||
# Pre-create the data dir so the entrypoint chown succeeds at startup
|
|
||||||
&& mkdir -p /config/data
|
&& mkdir -p /config/data
|
||||||
|
|||||||
Reference in New Issue
Block a user