Skip to content

Commit

Permalink
Fix bashio commands (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Jul 30, 2022
1 parent 43ff579 commit 3caab78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rootfs/etc/services.d/pulseaudio/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# ==============================================================================
# Start PulseAudio service
# ==============================================================================
declare puluse_args=()
declare pulse_args=()

if bashio::file.exists /data/pulse_audio.json; then
if bashio::fs.file_exists /data/pulse_audio.json; then
# Debug option
if bashio::var.true "$(bashio::jq /data/pulse_audio.json '.debug')"; then
puluse_args+=("-vvv")
pulse_args+=("-vvv")
fi
else
bashio::log.warning "No supervisor configuration found"
Expand All @@ -17,4 +17,4 @@ fi
export PULSE_STATE_PATH="/data/states"
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"

exec pulseaudio --system --disallow-exit --exit-idle-time=-1 --disable-shm "${puluse_args[@]}"
exec pulseaudio --system --disallow-exit --exit-idle-time=-1 --disable-shm "${pulse_args[@]}"

0 comments on commit 3caab78

Please sign in to comment.