mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-02 03:10:31 +02:00
aurral: fix startup — plain Node image, use entrypoint override not s6
This commit is contained in:
@@ -22,10 +22,7 @@ ENV AURRAL_DATA_DIR=/config/data \
|
|||||||
|
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
||||||
RUN chmod a+x /etc/services.d/aurral/run \
|
RUN chmod a+x /usr/local/bin/docker-entrypoint.sh
|
||||||
&& mkdir -p /config/data
|
|
||||||
|
|
||||||
# The upstream image sets ENTRYPOINT ["docker-entrypoint.sh"].
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
||||||
# Override it so s6-overlay (/init) owns startup instead.
|
CMD ["node", "server.js"]
|
||||||
ENTRYPOINT ["/init"]
|
|
||||||
CMD []
|
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Passthrough entrypoint — s6-overlay (via HA init: false) handles init.
|
set -e
|
||||||
# The upstream entrypoint tries to chown /app/backend/data which fails
|
|
||||||
# on HA-mounted host paths. We bypass it entirely and use AURRAL_DATA_DIR
|
# Create persistent data directories
|
||||||
# to redirect the data directory instead.
|
mkdir -p "${AURRAL_DATA_DIR:-/config/data}"
|
||||||
|
mkdir -p "${AURRAL_DATA_DIR:-/config/data}/image-proxy"
|
||||||
|
mkdir -p "${DOWNLOAD_FOLDER:-/share/aurral/downloads}"
|
||||||
|
mkdir -p "${WEEKLY_FLOW_FOLDER:-/share/aurral/downloads/weekly-flow}"
|
||||||
|
|
||||||
|
# Pre-create /app/backend/data as a real dir so node can write to it
|
||||||
|
# (symlink approach fails when the target isn't mounted yet)
|
||||||
|
mkdir -p /app/backend/data
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user