What is the correct way to update across minor versions?

Every time I update the OpenHAB package, I need to delete userdata/etc, userdata/tmp and userdata/cache. Next recreate tmp and cache, set permissions. Then copy etc from /usr/local/share/openhab/etc (and set permissions).

If I don’t do those exact steps, then OpenHAB will remain stuck on the old version. If I skip etc (or fail to set proper permissions on it), OpenHAB won’t start and I have to delete tmp and cache again.

Is there a better way?

On what OS and in what way have you installed openHAB?

Deleting tmp and cache should be done by the upgrade process if using apt. What do you mean by copying /usr/local/share/openhab/etc? Copy to where?

This is non-standard behavior. apt and yum will do all these steps for you. However, if you’ve made changes to any of the files in userdata/etc it might ask if you want to replace it with the new version in the package and for versions.properties (and most of the files really) the answer should be “yes”.

If you are using a manually installed verison, you should run the upgrade script/bat after the upgrade to do all these steps for you.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.