home-assistant-addon/esphome-dev/rootfs/etc/cont-init.d/40-migrate.sh

12 lines
548 B
Bash
Raw Normal View History

2019-03-17 20:07:36 +01:00
#!/usr/bin/with-contenv bashio
2019-02-14 16:06:39 +01:00
# ==============================================================================
# Community Hass.io Add-ons: ESPHome
# This files migrates the esphome config directory from the old path
# ==============================================================================
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