Reworks the update process to update the userdata in the container using the update.lst and userdata_sysfiles.lst files (provided by openhab-distro).
The update script has been modified for use in the container.
This adds the following new functionality when updating between versions:
show update notes and warnings during the update (based on update.lst)
execute the update pre/post commands (based on update.lst)
replace userdata system files with newer versions (based on userdata_sysfiles.lst)
update KAR files in addons dir by downloading newer versions
log the update output in update.log
Other improvements are:
declare and use common openHAB environment variables in scripts (OPENHAB_BACKUPS, OPENHAB_CONF, OPENHAB_HOME, OPENHAB_LOGDIR, OPENHAB_USERDATA)
initialize empty volumes using a reusable method
move all default volume data into the "dist" directory
remove Windows PowerShell scripts from container images
I've tested many upgrade scenarios with the Debian and Alpine images. This change also allows for updating the classnames of rules created in Paper UI (https://github.com/openhab/openhab-core/issues/674) for 2.5.0.
Reworks the update process to update the userdata in the container using the
update.lst
anduserdata_sysfiles.lst
files (provided by openhab-distro). The update script has been modified for use in the container.This adds the following new functionality when updating between versions:
update.lst
)update.lst
)userdata_sysfiles.lst
)Other improvements are:
I've tested many upgrade scenarios with the Debian and Alpine images. This change also allows for updating the classnames of rules created in Paper UI (https://github.com/openhab/openhab-core/issues/674) for 2.5.0.
This change is