mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
changed dockerfile and init-cp run
This commit is contained in:
parent
e7a1175484
commit
4508d71553
2 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue