changed dockerfile and init-cp run

This commit is contained in:
Richard Sperry 2025-04-15 15:32:22 -07:00
parent a7a0f927ec
commit 2b3e7447a0
2 changed files with 4 additions and 1 deletions

View file

@ -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?

View file

@ -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