Add more boilerplate (#10)

This commit is contained in:
Joakim Sørensen
2021-09-26 18:28:49 +02:00
committed by GitHub
parent 9a921b3d70
commit 8b111e9eed
7 changed files with 42 additions and 6 deletions

View File

@@ -3,8 +3,16 @@
# Start the example service
# ==============================================================================
## Add your code here
# Add your code here
bashio::log.info "Hello world"
## Get the 'message' key from the user config options.
CONFIG_MESSAGE=$(bashio::config 'message')
## Set the message to be printed, defaults to "Hello World..."
PRINT_MESSAGE=${CONFIG_MESSAGE:="Hello World..."}
## Print the message the user supplied
bashio::log.info "${PRINT_MESSAGE}"
## Run your program
# exec my_program --with-params