Skip to content

Commit

Permalink
Remove auth
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli committed Feb 24, 2020
1 parent 841dfc0 commit 8db97c4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
1 change: 0 additions & 1 deletion rootfs/etc/cont-init.d/setup_filesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ fi

# Internal
if [ ! -d /data/internal ]; then
mkdir -p /data/internal
mkdir -p /data/internal/states
chown -R pulse:pulse /data/internal
fi
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/pulse/system.pa
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ load-module module-udev-detect

### Load several protocols
load-module module-dbus-protocol
load-module module-native-protocol-unix socket=/data/internal/pulse.sock auth-cookie=/data/internal/cookie_unix
load-module module-native-protocol-unix auth-anonymous=1 socket=/data/internal/pulse.sock

### Automatically restore the default sink/source when changed by the user
### during runtime
Expand Down
16 changes: 1 addition & 15 deletions rootfs/etc/services.d/pulseaudio/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,4 @@
# ==============================================================================
# Start PulseAudio service
# ==============================================================================
pulseaudio --system -vvv &
PULSE_PID=$!

if [ ! -f /data/external/cookie_unix ]; then
while [ ! -f /data/internal/cookie_unix ]; do
bashio::log.debug "Waiting for cookie files"
sleep 1
done

bashio::log.info "Preserve UNIX session auth cookie"
cp -f /data/internal/cookie_unix /data/external/cookie_unix
chmod 640 /data/external/cookie_unix
fi

wait ${PULSE_PID}
exec pulseaudio --system -vvv

0 comments on commit 8db97c4

Please sign in to comment.