This commit is contained in:
Richard Sperry 2025-04-16 15:40:30 -07:00
parent 8ab0aec9aa
commit 88588fdb7c
2 changed files with 9 additions and 2 deletions

View file

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

View file

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