Skip to content

Commit

Permalink
meeeeeeh
Browse files Browse the repository at this point in the history
  • Loading branch information
dubo-dubon-duponey committed Mar 20, 2024
1 parent 2273f41 commit ceb1aad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions context/runtime/boot/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ nqptp &
[ "${MOD_MQTT_ENABLED:-}" == true ] && MOD_MQTT_ENABLED=yes || MOD_MQTT_ENABLED=no
[ "${MOD_MQTT_COVER:-}" == true ] && MOD_MQTT_COVER=yes || MOD_MQTT_COVER=no

configuration="$(cat "$XDG_CONFIG_DIRS"/shairport-sync/main.conf)\n\n"
[ ! -e "$XDG_CONFIG_HOME"/shairport-sync/main.conf ] || configuration+="$(cat "$XDG_CONFIG_HOME"/shairport-sync/main.conf)\n\n"
configuration="$(cat "$XDG_CONFIG_DIRS"/shairport-sync/main.conf)"
[ ! -e "$XDG_CONFIG_HOME"/shairport-sync/main.conf ] || configuration+="$(cat "$XDG_CONFIG_HOME"/shairport-sync/main.conf)"

# shellcheck disable=SC2016
configuration+="$(printf 'mqtt {
configuration+="$(printf '
mqtt {
enabled = "%s"; // set this to yes to enable the mqtt-metadata-service
hostname = "%s"; // Hostname of the MQTT Broker
port = %s; // Port on the MQTT Broker to connect to
Expand Down

0 comments on commit ceb1aad

Please sign in to comment.