Files
boWave/docker/mopidy/entrypoint.sh

18 lines
358 B
Bash

#!/bin/sh
set -e
# Create the audio directory if it doesn't exist
mkdir -p /tmp/audio
# Create the named pipes if they don't exist
for pipe in spotify.pcm airplay.pcm mopidy.pcm; do
path="/tmp/audio/$pipe"
if [ ! -p "$path" ]; then
mkfifo "$path"
echo "Created pipe: $path"
fi
done
echo "All audio pipes ready. Starting Mopidy..."
exec "$@"