mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-07 04:31:24 +00:00
changed init-cp run
This commit is contained in:
parent
a9ab72fc3a
commit
194ab0a64a
1 changed files with 5 additions and 0 deletions
|
@ -48,9 +48,14 @@ bashio::log.info "using code-server config path: $config_path"
|
||||||
# Ensure code-server config
|
# Ensure code-server config
|
||||||
if ! bashio::fs.file_exists "$CODE_SERVER_CONFIG"; then
|
if ! bashio::fs.file_exists "$CODE_SERVER_CONFIG"; then
|
||||||
# TODO check for correct perms
|
# TODO check for correct perms
|
||||||
|
|
||||||
|
bashio::log.error "CODE_SERVER_CONFIG does not exist.."
|
||||||
cp "$DEFAULT_FILES_PATH/config.yaml" "$DEFAULT_CONFIG_PATH"
|
cp "$DEFAULT_FILES_PATH/config.yaml" "$DEFAULT_CONFIG_PATH"
|
||||||
|
else
|
||||||
|
bashio::log.info "CODE_SERVER_CONFIG does exist"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if bashio::config.has_value 'log_level'; then
|
if bashio::config.has_value 'log_level'; then
|
||||||
log_level=$(bashio::config 'log_level')
|
log_level=$(bashio::config 'log_level')
|
||||||
if [ "$log_level" = "warning" ] ; then
|
if [ "$log_level" = "warning" ] ; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue