-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add migration to addon_config #649
Add migration to addon_config #649
Conversation
Thanks! |
* mount addon_config into container * add addon_config migration
export ZIGBEE2MQTT_DATA="$(bashio::config 'data_path')" | ||
|
||
# Migrate configuration to addon specific data path for HA backups, see https://github.com/zigbee2mqtt/hassio-zigbee2mqtt/issues/627 | ||
if [[ "$ZIGBEE2MQTT_DATA" == "/addon_config/zigbee2mqtt" ]] && ! bashio::fs.file_exists "$ZIGBEE2MQTT_DATA/configuration.yaml" && bashio::fs.file_exists "/config/zigbee2mqtt/configuration.yaml"; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the folder is named addon_configs
not addon_config
?
(same for other refs in PR, and #642)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The config folder is mounted to /addon_config/
as specified in the config.json
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
* mount addon_config into container * add addon_config migration
@BigBoot yes something really weird happend. It's almost as if the addon was picking the config.json from the branch. I reverted it by removing the changes from the master branch, parked the changes in https://github.com/zigbee2mqtt/hassio-zigbee2mqtt/commits/2.0.0/ |
As explained on the HA docs, the https://developers.home-assistant.io/docs/add-ons/configuration/ |
Second part of #642 intended for 2.0.0