First working version

This commit is contained in:
2020-04-30 12:36:27 +02:00
parent 5d1a8bbd52
commit f18e948aad
8 changed files with 495 additions and 2 deletions

9
play.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
if (($(docker-compose -f ${DIR}/docker-compose.yml ps | grep -o "Up" | wc -l) < 2)) ; then
echo "Starting containers ..."
docker-compose -f ${DIR}/docker-compose.yml up -d
fi
docker-compose -f ${DIR}/docker-compose.yml exec mpd bash -c "mpc ls | mpc add && mpc play"