mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
devenv
This commit is contained in:
parent
8ab0aec9aa
commit
88588fdb7c
2 changed files with 9 additions and 2 deletions
|
@ -20,8 +20,15 @@ hassio_api: true
|
|||
hassio_role: manager
|
||||
homeassistant_api: true
|
||||
map:
|
||||
- type: backup
|
||||
read_only: false
|
||||
- type: data
|
||||
read_only: false
|
||||
- type: media
|
||||
read_only: false
|
||||
- type: ssl
|
||||
read_only: false
|
||||
|
||||
services:
|
||||
- mysql:want
|
||||
- mqtt:want
|
||||
|
|
|
@ -61,7 +61,7 @@ setup_config_path() {
|
|||
else
|
||||
# otherwise set to local dir
|
||||
if ! bashio::fs.directory_exists "$DEFAULT_CONFIG_PATH"; then
|
||||
bashio::log.warning "Config path did not exist, creating $CODE_SERVER_CONFIG"
|
||||
bashio::log.warning "Config path did not exist, creating $DEFAULT_CONFIG_PATH"
|
||||
mkdir -p "$DEFAULT_CONFIG_PATH" ||
|
||||
bashio::exit.nok "Could not create persistent storage folder."
|
||||
fi
|
||||
|
@ -73,7 +73,7 @@ setup_config_path() {
|
|||
setup_config_files() {
|
||||
# Ensure code-server config
|
||||
if [ ! -e "$CODE_SERVER_CONFIG" ]; then
|
||||
bashio::log.error "CODE_SERVER_CONFIG does not exist.."
|
||||
bashio::log.warning "CODE_SERVER_CONFIG does not exist.."
|
||||
cp "$DEFAULT_FILES_PATH/config.yaml" "$CODE_SERVER_CONFIG"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue