From c9b13cd8eccc03dd87f0f3209929d425aebc69f0 Mon Sep 17 00:00:00 2001 From: Richard Sperry Date: Mon, 14 Apr 2025 22:57:44 +0000 Subject: [PATCH] argggh --- .../etc/s6-overlay/s6-rc.d/init-mosquitto/run | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mosquitto/run b/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mosquitto/run index 1be6f70..63a032b 100755 --- a/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mosquitto/run +++ b/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mosquitto/run @@ -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