Revert "argggh"

This reverts commit c9b13cd8ec.
This commit is contained in:
Richard Sperry 2025-04-14 16:00:33 -07:00
parent c9b13cd8ec
commit 9ff2bb6306

View file

@ -1,28 +1,28 @@
#!/command/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Home Assistant Community Add-on: Studio Code Server
# Pre-configures the Mosquitto clients, if the service is available
# ==============================================================================
declare host
declare password
declare port
declare username
if bashio::services.available "mqtt"; then
host=$(bashio::services "mqtt" "host")
password=$(bashio::services "mqtt" "password")
port=$(bashio::services "mqtt" "port")
username=$(bashio::services "mqtt" "username")
mkdir -p /root/.config
{
echo "-h ${host}"
echo "--pw ${password}"
echo "--port ${port}"
echo "--username ${username}"
} >/root/.config/mosquitto_sub
ln -s /root/.config/mosquitto_sub /root/.config/mosquitto_pub
ln -s /root/.config/mosquitto_sub /root/.config/mosquitto_rr
fi
#!/command/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Home Assistant Community Add-on: Studio Code Server
# Pre-configures the Mosquitto clients, if the service is available
# ==============================================================================
declare host
declare password
declare port
declare username
if bashio::services.available "mqtt"; then
host=$(bashio::services "mqtt" "host")
password=$(bashio::services "mqtt" "password")
port=$(bashio::services "mqtt" "port")
username=$(bashio::services "mqtt" "username")
mkdir -p /root/.config
{
echo "-h ${host}"
echo "--pw ${password}"
echo "--port ${port}"
echo "--username ${username}"
} >/root/.config/mosquitto_sub
ln -s /root/.config/mosquitto_sub /root/.config/mosquitto_pub
ln -s /root/.config/mosquitto_sub /root/.config/mosquitto_rr
fi