16 lines
408 B
Bash
Executable file
16 lines
408 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
rm -rf /tmp/pulseaudio.socket || true
|
|
rm -rf /tmp/pulseaudio.client.conf || true
|
|
|
|
pactl load-module module-native-protocol-unix socket=/tmp/pulseaudio.socket
|
|
|
|
cat <<EOT >> /tmp/pulseaudio.client.conf
|
|
default-server = unix:/tmp/pulseaudio.socket
|
|
# Prevent a server running in the container
|
|
autospawn = no
|
|
daemon-binary = /bin/true
|
|
# Prevent the use of shared memory
|
|
enable-shm = false
|
|
EOT
|