mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
added svc depends
This commit is contained in:
parent
11fb438e59
commit
3d60b0e56b
1 changed files with 6 additions and 4 deletions
|
@ -47,13 +47,15 @@ fi
|
|||
bashio::log.info "using code-server config path: $config_path"
|
||||
|
||||
# Ensure code-server config
|
||||
if [ ! -e "$CODE_SERVER_CONFIG" ]; then
|
||||
if [ ! -d "$CODE_SERVER_CONFIG_DIR" ]; then
|
||||
# TODO check for correct perms
|
||||
bashio::log.error "CODE_SERVER_CONFIG does not exist.."
|
||||
bashio::log.error "CODE_SERVER_CONFIG_DIR does not exist.."
|
||||
mkdir -p "$CODE_SERVER_CONFIG_DIR"
|
||||
fi
|
||||
|
||||
if [ ! -e "$CODE_SERVER_CONFIG" ]; then
|
||||
bashio::log.error "CODE_SERVER_CONFIG does not exist.."
|
||||
cp "$DEFAULT_FILES_PATH/config.yaml" "$CODE_SERVER_CONFIG"
|
||||
else
|
||||
bashio::log.info "CODE_SERVER_CONFIG does exist"
|
||||
fi
|
||||
|
||||
if bashio::config.has_value 'log_level'; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue