Add more boilerplate (#10)

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

No files matched your search

+10 -2
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