Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Mar 11, 2024
1 parent 5bbdfd7 commit 0130124
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions hue2mqtt/start_hue2mqtt
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,15 @@ cidfile=$1

fs="/mnt/calaos/hue2mqtt"

devlist()
{
grep '/dev/' ${fs}/hue2mqtt.toml | awk '{print $2}'
}

append_dev_opts()
{
local device=''

while read -r device ; do
echo " --device $device "
done < <(devlist)
}

# shellcheck disable=SC2046

podman run \
--name=hue2mqtt \
--cidfile="${cidfile}" --replace --rm --tz=local \
--sdnotify=conmon -d \
-v /mnt/calaos/hue2mqtt/hue2mqtt.toml:/hue2mqtt.toml \
-v /mnt/calaos/hue2mqtt:/config \
--network=host \
--pull=never \
--replace \
--tz=local \
$(append_dev_opts) \
${IMAGE_SRC}

0 comments on commit 0130124

Please sign in to comment.