changed dockerfile and init-cp run

This commit is contained in:
Richard Sperry 2025-04-15 15:21:24 -07:00
parent e7a1175484
commit 4508d71553
2 changed files with 2 additions and 5 deletions

View file

@ -68,9 +68,6 @@ 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/
# Copy default config
WORKDIR /root/.config/code-server/defaults
COPY "rootfs/usr/lib/code-server/defaults/config.yaml" "config.yaml"
# Install Oh My ZSH
# hadolint ignore=SC2086

View file

@ -37,7 +37,7 @@ else
# otherwise set to local dir
config_path="$DEFAULT_CONFIG_PATH"
if ! bashio::fs.directory_exists "$config_path"; then
bashio::log.info "Config path did not exist, createing $config_path"
bashio::log.info "Config path did not exist, creating $config_path"
mkdir -p "$config_path" ||
bashio::exit.nok "Could not create persistent storage folder."
fi
@ -48,7 +48,7 @@ bashio::log.info "using code-server config path: $config_path"
# Ensure code-server config
if ! bashio::fs.file_exists "$CODE_SERVER_CONFIG"; then
# TODO check for correct perms
install -m 755 -o root -g root "$DEFAULT_FILES_PATH/config.yaml" "$DEFAULT_CONFIG_PATH"
cp "$DEFAULT_FILES_PATH/config.yaml" "$DEFAULT_CONFIG_PATH"
fi
if bashio::config.has_value 'log_level'; then