From 17655f8d0d9e298bd4c70023c8468be5911bcc80 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 8 Jan 2023 18:05:41 +0100 Subject: MPD: use a dedicated directory where to store the playlists --- board/mpd.sh | 12 +++++++----- 1 file 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 -- cgit v1.2.3