inode64 / inode64-overlay

Gentoo overlay
Creative Commons Zero v1.0 Universal
12 stars 3 forks source link

app-misc/zigbee2mqtt overwrites configuration file on update #10

Closed daviessm closed 1 year ago

daviessm commented 1 year ago

app-misc/zigbee2mqtt stores its data files in /var/lib/zigbee2mqtt but by default this is not protected by CONFIG_PROTECT and the users' configuration.yaml will get overwritten with the template file on every update.

According to https://devmanual.gentoo.org/general-concepts/config-protect/index.html this can be overridden by ebuilds.

inode64 commented 1 year ago

Thank you very much, I was already using CONFIG PROTECT but there was a problem with the substitution of the PN variable

daviessm commented 1 year ago

Hmm, the update to 1.31.0 today clobbered my configuration.yaml again.

inode64 commented 1 year ago

I forgot to tell you that before updating you will check that the file /etc/env.d/90zigbee2mqtt contains CONFIG_PROTECT="/var/lib/zigbee2mqtt"

If you look now you will have the variable correctly If not, even if you have corrected the problem, Gentoo will use the old file Check it and tell me

daviessm commented 1 year ago

Yep it's there now.