mirror of
https://github.com/hassio-addons/addon-jupyterlab.git
synced 2025-05-07 04:41:32 +00:00
11 lines
525 B
Bash
11 lines
525 B
Bash
#!/usr/bin/with-contenv bashio
|
|
# ==============================================================================
|
|
# Home Assistant Community Add-on: JupyterLab Lite
|
|
# Executes user configured/requested commands on startup
|
|
# ==============================================================================
|
|
if bashio::config.has_value 'init_commands'; then
|
|
while read -r cmd; do
|
|
eval "${cmd}" \
|
|
|| bashio::exit.nok "Failed executing init command: ${cmd}"
|
|
done <<< "$(bashio::config 'init_commands')"
|
|
fi
|