mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 12:24:05 +00:00
Ensure esphome directory exists on addon startup (#5464)
This commit is contained in:
parent
efd31be21c
commit
af005a6554
@ -41,6 +41,8 @@ fi
|
|||||||
|
|
||||||
mkdir -p "${pio_cache_base}"
|
mkdir -p "${pio_cache_base}"
|
||||||
|
|
||||||
|
mkdir -p /config/esphome
|
||||||
|
|
||||||
if bashio::fs.directory_exists '/config/esphome/.esphome'; then
|
if bashio::fs.directory_exists '/config/esphome/.esphome'; then
|
||||||
bashio::log.info "Migrating old .esphome directory..."
|
bashio::log.info "Migrating old .esphome directory..."
|
||||||
if bashio::fs.file_exists '/config/esphome/.esphome/esphome.json'; then
|
if bashio::fs.file_exists '/config/esphome/.esphome/esphome.json'; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user