mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 17:27:45 +01:00
14 lines
612 B
Bash
14 lines
612 B
Bash
|
#!/usr/bin/with-contenv bash
|
||
|
# ==============================================================================
|
||
|
# Community Hass.io Add-ons: ESPHome
|
||
|
# This files migrates the esphome config directory from the old path
|
||
|
# ==============================================================================
|
||
|
# shellcheck disable=SC1091
|
||
|
source /usr/lib/hassio-addons/base.sh
|
||
|
|
||
|
if [[ ! -d /config/esphome && -d /config/esphomeyaml ]]; then
|
||
|
echo "Moving config directory from /config/esphomeyaml to /config/esphome"
|
||
|
mv /config/esphomeyaml /config/esphome
|
||
|
mv /config/esphome/.esphomeyaml /config/esphome/.esphome
|
||
|
fi
|