changed init-cp run

This commit is contained in:
Richard Sperry 2025-04-15 15:52:28 -07:00
parent a9ab72fc3a
commit 194ab0a64a

View file

@ -48,9 +48,14 @@ 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
bashio::log.error "CODE_SERVER_CONFIG does not exist.."
cp "$DEFAULT_FILES_PATH/config.yaml" "$DEFAULT_CONFIG_PATH"
else
bashio::log.info "CODE_SERVER_CONFIG does exist"
fi
if bashio::config.has_value 'log_level'; then
log_level=$(bashio::config 'log_level')
if [ "$log_level" = "warning" ] ; then