addon-jupyterlab/jupyterlab/rootfs/etc/cont-init.d/81-user-scripts.sh
Franck Nijhof 1b898d3080
🔨 Re-branding
2020-02-14 19:39:34 +01:00

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