Change script permission setting in Dockerfile

Updated file permissions for scripts in /etc instead of current directory.
This commit is contained in:
Alexandre
2026-02-03 21:17:17 +01:00
committed by GitHub
parent f41c7a9c1e
commit 199f9509ea

View File

@@ -91,7 +91,7 @@ RUN \
################## ##################
# Copy local files # Copy local files
COPY rootfs/ / COPY rootfs/ /
RUN find . -type f \( -name "*.sh" -o -name "run" -o -name "finish" \) -print -exec chmod +x {} \; RUN find /etc -type f \( -name "*.sh" -o -name "run" -o -name "finish" \) -exec chmod +x {} +
# Uses /bin for compatibility purposes # Uses /bin for compatibility purposes
# hadolint ignore=DL4005 # hadolint ignore=DL4005
@@ -137,10 +137,6 @@ RUN chmod 777 /ha_entrypoint.sh
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/bashio-standalone.sh" "/usr/local/lib/bashio-standalone.sh" ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/bashio-standalone.sh" "/usr/local/lib/bashio-standalone.sh"
RUN chmod 0755 /usr/local/lib/bashio-standalone.sh RUN chmod 0755 /usr/local/lib/bashio-standalone.sh
COPY rootfs/ /
RUN find . -type f \( -name "*.sh" -o -name "run" -o -name "finish"\) -print -exec chmod +x {} \;
############ ############
# 5 Labels # # 5 Labels #
############ ############