package/mpd: create directories used in mpd.conf
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 24 Jan 2021 18:26:05 +0000 (19:26 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 25 Jan 2021 21:23:02 +0000 (22:23 +0100)
Fixes:
 - https://bugs.buildroot.org/show_bug.cgi?id=13471

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/mpd/mpd.mk

index 6e8a3f36da18b4555503f7088f320241fecdf410..baabb6ff38b06f0dc83471383dedd696f0bfc63e 100644 (file)
@@ -333,6 +333,8 @@ endif
 
 define MPD_INSTALL_EXTRA_FILES
        $(INSTALL) -m 0644 -D package/mpd/mpd.conf $(TARGET_DIR)/etc/mpd.conf
+       mkdir -p $(TARGET_DIR)/var/lib/mpd/music
+       mkdir -p $(TARGET_DIR)/var/lib/mpd/playlists
 endef
 
 MPD_POST_INSTALL_TARGET_HOOKS += MPD_INSTALL_EXTRA_FILES