From 8db97c45a20d27494ee90f8b7a1b0c5a4cf141b0 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 24 Feb 2020 21:44:09 +0100 Subject: [PATCH] Remove auth --- rootfs/etc/cont-init.d/setup_filesystem.sh | 1 - rootfs/etc/pulse/system.pa | 2 +- rootfs/etc/services.d/pulseaudio/run | 16 +--------------- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/rootfs/etc/cont-init.d/setup_filesystem.sh b/rootfs/etc/cont-init.d/setup_filesystem.sh index 9f6feaa..0856c13 100644 --- a/rootfs/etc/cont-init.d/setup_filesystem.sh +++ b/rootfs/etc/cont-init.d/setup_filesystem.sh @@ -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 diff --git a/rootfs/etc/pulse/system.pa b/rootfs/etc/pulse/system.pa index 2d62e3d..8bce5cf 100644 --- a/rootfs/etc/pulse/system.pa +++ b/rootfs/etc/pulse/system.pa @@ -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 diff --git a/rootfs/etc/services.d/pulseaudio/run b/rootfs/etc/services.d/pulseaudio/run index fe1a629..24ed61a 100644 --- a/rootfs/etc/services.d/pulseaudio/run +++ b/rootfs/etc/services.d/pulseaudio/run @@ -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} \ No newline at end of file +exec pulseaudio --system -vvv \ No newline at end of file