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
Signed-off-by: Wouter Born <github@maindrain.net>
* Update user/group ID and unlimited crypto documentation
Signed-off-by: Wouter Born <eclipse@maindrain.net>
* Rename existing group matching GROUP_ID environment variable to openhab
Signed-off-by: Wouter Born <eclipse@maindrain.net>
* Use multi architecture image manifests
Additionaly several new tags have been added to multi-architecture images.
The complete list of tags is now:
openhab/openhab:<version>
openhab/openhab:<version>-<distribution>
openhab/openhab:<version>-<architecture>-<distribution>
openhab/openhab:latest
openhab/openhab:latest-<distribution>
openhab/openhab:milestone
openhab/openhab:milestone-<distribution>
openhab/openhab:snapshot
openhab/openhab:snapshot-<distribution>
* Fix Codacy issues
* Fix CodeFactor issues
Signed-off-by: Wouter Born <eclipse@maindrain.net>