maintainerr: replace /opt/data with /config/data in Dockerfile and ha_entrypoint

Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/21b5a0d9-5483-4227-b0f2-e047708cfbca

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-08 08:11:07 +00:00
committed by GitHub
parent cbf73c34dc
commit c5b212bf47
2 changed files with 9 additions and 19 deletions

View File

@@ -64,7 +64,8 @@ COPY --from=ha_tools /out/ /
# Add rootfs
COPY rootfs/ /
RUN chmod +x /entrypoint.sh \
&& find /etc/cont-init.d /etc/cont-finish.d -type f -name "*.sh" -exec chmod +x {} \; 2>/dev/null || true
&& find /etc/cont-init.d /etc/cont-finish.d -type f -name "*.sh" -exec chmod +x {} \; 2>/dev/null || true \
&& find / -type f \( -name "*.js" -o -name "*.ts" -o -name "*.json" -o -name "*.sh" -o -name "*.yml" -o -name "*.yaml" -o -name "*.env" -o -name "*.conf" -o -name "*.cfg" \) ! -path "/proc/*" ! -path "/sys/*" ! -path "/dev/*" -exec grep -l "/opt/data" {} \; 2>/dev/null | xargs -r sed -i 's|/opt/data|/config/data|g'
# Install bashio standalone
RUN BASHIO_VERSION="0.14.3" && \