it’s common practice in linux distributions that during an update edited/changed configuration files are being detected and the user will be asked for which action ( keep edited file, overwrite edited file in case a newer maintainer version is avaiable; do a diff and edit the file manually ) needs to be done.
I’ve had files replaced in that folder before I think. But maybe I’m mistaken. I’ve only one apt based installation and I almost never update it because it’s 100 miles away and fixing problems is a bit challenging.
That’s correct and this is what it will do (if it’s not one the specific files listed). It only comes up with these warnings and prompts if the file has changed on the maintainer’s side.
I had to test because that’s certainly something that should be fixed asap, it was our goal to have the update of all types of installation exhibit the same behaviour:
ben@server:~ $ echo "ben = testpass,_g_:admingroup" | sudo tee -a /var/lib/openhab2/etc/users.properties
ben = testpass,_g_:admingroup
ben@server:~ $ tail -n2 /var/lib/openhab2/etc/users.properties
_g_\:admingroup = group,admin,manager,viewer,systembundles
ben = {CRYPT}13D249F2CB4127B40CFA757866850278793F814DED3C587FE5889E889A7A9F6C{CRYPT},_g_:admingroup
ben@server:~ $ sudo apt upgrade
[...]
The following packages will be upgraded:
openhab2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[...]
Unpacking openhab2 (2.5.6~S139-1) over (2.5.5~S108-1) ...
Setting up openhab2 (2.5.6~S139-1) ...
[...]
ben@server:~ $ tail -n2 /var/lib/openhab2/etc/users.properties
_g_\:admingroup = group,admin,manager,viewer,systembundles
ben = {CRYPT}13D249F2CB4127B40CFA757866850278793F814DED3C587FE5889E889A7A9F6C{CRYPT},_g_:admingroup
Phew
It’s been a long time and my memory may be from OH 1.6 for all I know. Or I’m thinking of /etc/defaults or something like that. Or it might be something openHABian did. I just can’t remember any specifics.
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.