finally a new error after a complete reinstall of HA

This commit is contained in:
Richard Sperry 2025-04-15 12:45:18 -07:00
parent a0795cd244
commit 90bd945b2a
2 changed files with 6 additions and 4 deletions

View file

@ -63,9 +63,10 @@ RUN if [ "${BUILD_ARCH}" = "aarch64" ]; then HA_CLI_URL="https://github.com/home
#Copy root file system
COPY rootfs /
RUN chown -R root:root /root
RUN chown -R root:root /etc/s6-overlay/s6-rc.d/
RUN chmod 755 -R /etc/s6-overlay/s6-rc.d/
RUN chown -R root:root /root \
&& chown -R root:root /etc/s6-overlay/s6-rc.d/ \
&& chmod 755 -R /etc/s6-overlay/s6-rc.d/
RUN install -m 600 -o root -g root "$DEFAULT_CONFIG_PATH" "/root/.config/code-server/config.yaml"
# Install Oh My ZSH
# hadolint ignore=SC2086

View file

@ -47,7 +47,8 @@ bashio::log.info "using code-server config path: $config_path"
# Ensure code-server config
if ! bashio::fs.file_exists "$CODE_SERVER_CONFIG"; then
cp "$DEFAULT_FILES_PATH/config.yaml" "$CODE_SERVER_CONFIG"
# TODO check for correct perms
install -m 755 -o root -g root "$DEFAULT_FILES_PATH/config.yaml" "$DEFAULT_CONFIG_PATH"
fi
if bashio::config.has_value 'log_level'; then