aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2023-01-08 18:05:41 +0100
committerSébastien Dailly <sebastien@dailly.me>2023-01-08 18:05:41 +0100
commit17655f8d0d9e298bd4c70023c8468be5911bcc80 (patch)
tree68981d1771895e3696503d29813fd5b1e687216b
parent7397b0527ae6fd53f2f72db6fa411f9197c11692 (diff)
MPD: use a dedicated directory where to store the playlists
-rw-r--r--board/mpd.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/board/mpd.sh b/board/mpd.sh
index 5c86e69..7313231 100644
--- a/board/mpd.sh
+++ b/board/mpd.sh
@@ -17,7 +17,7 @@ database {
# Directory where user-made playlists are stored (RW)
#playlist_directory "nfs://192.168.0.4/home/mpd/playlists"
-playlist_directory "/tmp/"
+playlist_directory "/tmp/playlists"
# Log file (RW)
# disable the logs
@@ -81,13 +81,15 @@ __EOF__
cat << __EOF__ > "${TARGET_DIR}/etc/systemd/system/playlists.service"
[Unit]
Description=Playlists
-After=network-online.target
-Wants=network-online.target
+#After=network-online.target
+#Wants=network-online.target
+Before=mpd.target
[Service]
Type=unit
-ExecStartPre=sleep 3
-ExecStart=find /home/ -name '*.m3u' -exec cp {} /tmp \;
+#ExecStartPre=sleep 3
+ExecStartPre=mkdir /tmp/playlists
+ExecStart=find /home/ -name '*.m3u' -exec cp {} /tmp/playlists \;
[Install]
WantedBy=multi-user.target