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
a7a0f927ec
commit
2b3e7447a0
2 changed files with 4 additions and 1 deletions
|
@ -40,9 +40,10 @@ services:
|
|||
options:
|
||||
log_level: Warn
|
||||
schema:
|
||||
log_level: list(Trace|Debug|Info|Warn|Error)
|
||||
log_level: list(trace|debug|info|Warn|error)
|
||||
config_path: str?
|
||||
packages:
|
||||
- str?
|
||||
init_commands:
|
||||
- str?
|
||||
|
||||
|
|
|
@ -53,6 +53,8 @@ fi
|
|||
|
||||
if bashio::config.has_value 'log_level'; then
|
||||
log_level=$(bashio::config 'log_level')
|
||||
# shellcheck disable=SC2001
|
||||
log_level="$(echo "$log_level" | sed 's/.*/\u&/')"
|
||||
sed -i "/log=/c log=\"$log_level\"" "$CODE_SERVER_CONFIG"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue