mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-24 15:02:15 +01:00
17 lines
539 B
Bash
17 lines
539 B
Bash
#!/usr/bin/with-contenv bashio
|
|
|
|
if [ -z ${STANDALONE+x} ]; then
|
|
export MQTT_USER=$(bashio::services "mqtt" "username")
|
|
export MQTT_PASS=$(bashio::services "mqtt" "password")
|
|
export MQTT_SERVER=$(bashio::services "mqtt" "host")
|
|
export MQTT_PORT=$(bashio::services "mqtt" "port")
|
|
else
|
|
echo "RUNNING IN STANDALONE MODE"
|
|
fi
|
|
export CONFIG_FILE=/config/panels.yaml
|
|
if test -f "$CONFIG_FILE"; then
|
|
echo "$CONFIG_FILE exists."
|
|
else
|
|
cp /usr/bin/mqtt-manager/panels.yaml.example $CONFIG_FILE
|
|
fi
|
|
python /usr/bin/mqtt-manager/main.py |