Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A cont-init.d script for the official openHAB Docker container.
* Download an install the helper libraries. * Copy the initial configuration.[groovy|js|py] in place if it does not exist. This will script will download the helper libraries to the /openhab/automation/openhab-helper-libraries directory when this directory does not exist. Before making any changes, the script does a sanity check to make sure that the required changes can be made. In case of a problem the script will abort before making any changes to the system. Updating the helper libraries is as easy as deleting the /openhab/automation/openhab-helper-libraries directory and restarting the container. The script creates the following directory structure (where 'core' is a symlink the the indicated core directory in the openhab-helper-library): /openhab/conf/automation/jsr223/groovy/community /openhab/conf/automation/jsr223/groovy/core -> /openhab/conf/automation/openhab-helper-libraries/Core/automation/jsr223/groovy/core /openhab/conf/automation/jsr223/groovy/personal /openhab/conf/automation/jsr223/javascript/community /openhab/conf/automation/jsr223/javascript/core -> /openhab/conf/automation/openhab-helper-libraries/Core/automation/jsr223/javascript/core /openhab/conf/automation/jsr223/javascript/personal /openhab/conf/automation/jsr223/python/community /openhab/conf/automation/jsr223/python/core -> /openhab/conf/automation/openhab-helper-libraries/Core/automation/jsr223/python/core /openhab/conf/automation/jsr223/python/personal /openhab/conf/automation/lib/groovy/community /openhab/conf/automation/lib/groovy/configuration.groovy /openhab/conf/automation/lib/groovy/core -> /openhab/conf/automation/openhab-helper-libraries/Core/automation/lib/groovy/core /openhab/conf/automation/lib/groovy/personal /openhab/conf/automation/lib/javascript/community /openhab/conf/automation/lib/javascript/configuration.js /openhab/conf/automation/lib/javascript/core -> /openhab/conf/automation/openhab-helper-libraries/Core/automation/lib/javascript/core /openhab/conf/automation/lib/javascript/personal /openhab/conf/automation/lib/python/community /openhab/conf/automation/lib/python/configuration.py /openhab/conf/automation/lib/python/core -> /openhab/conf/automation/openhab-helper-libraries/Core/automation/lib/python/core /openhab/conf/automation/lib/python/personal /openhab/conf/automation/openhab-helper-libraries
- Loading branch information