This commit is contained in:
2022-06-18 23:52:46 +02:00
parent ff7d475465
commit 6c26d878ad
5 changed files with 18 additions and 7 deletions

View File

@@ -1,11 +1,14 @@
#!/usr/bin/env bashio
set -x
declare hostname
bashio::require.unprotected
SETTINGS_CONF=/variables.sh
touch ${SETTINGS_CONF}
SOCKET_PATH=$(bashio::config 'socket_path')
bashio::log.info "Setting socket path: ${SOCKET_PATH}"
echo "export SOCKET_PATH=${SOCKET_PATH}" >> ${SETTINGS_CONF}
if bashio::var.true 'events'; then
bashio::log.info "Enabling events"
echo "export ENABLE_EVENTS=1" >> ${SETTINGS_CONF}