HestiaPi / hestia-touch-openhab

OpenHAB2 files for HestiaPi Touch model
GNU General Public License v3.0
60 stars 17 forks source link

updateone.sh reverts OpenHAB to 2.5.3 #69

Closed anon8675309 closed 1 year ago

anon8675309 commented 1 year ago

The rsync command in updateone.sh causes openhab to (partially) get reverted from the version that was installed (e.g. 2.5.12) to 2.5.3.

Steps to reproduce:

  1. Set up a pi running a stock jessie image
  2. Install openhab2 using the official instructions
  3. Run openhab-cli info to see that you have 2.5.12 installed
  4. Run updateone.sh
  5. Run openhab-cli info to see that it now reports that you have 2.5.3 installed
anon8675309 commented 1 year ago

It appears to be something in ./var/lib/openhab2 that is causing this. I see that version number hard-coded in a number of places in there.

All of the following files are in ./var/lib/openhab2 and contain 2.5.3:

anon8675309 commented 1 year ago

It appears that the openhab-cli info command gets version information from /var/lib/openhab2/etc/version.properties.

gulliverrr commented 1 year ago

The mentioned script is only to pull to a local installation the version which is on github only if the reported version installed is lower than the version on the github repo. Right now there is no newer version on github. All the logic above is inside HestiaPi and the script you mention is not to be called "by hand" but by this "Thing": https://github.com/HestiaPi/hestia-touch-openhab/blob/efc69c44a1894183c9e6140254faf0b513820ebf/var/lib/openhab2/jsondb/org.eclipse.smarthome.core.thing.Thing.json#L1989