aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@gmail.com>2018-09-26 15:21:13 +0200
committerKhem Raj <raj.khem@gmail.com>2018-09-26 07:35:44 -0700
commitcadf87d46385fcad2197e73f666f0017ef5093cb (patch)
treea75c1b4fa3611af7e88ed4ca0ed129e705fa05d9
parent3f52eef1e1b3a07343d4926294e45b4968ed0856 (diff)
downloadmeta-openembedded-contrib-cadf87d46385fcad2197e73f666f0017ef5093cb.tar.gz
meta-openembedded-contrib-cadf87d46385fcad2197e73f666f0017ef5093cb.tar.bz2
meta-openembedded-contrib-cadf87d46385fcad2197e73f666f0017ef5093cb.zip
mpd: eliminate `chmod`/`chown` calls by using `install`
Signed-off-by: Max Kellermann <max.kellermann@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.21.bb10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.21.bb b/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.21.bb
index e23c8d523a..9123673fbf 100644
--- a/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.21.bb
+++ b/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.21.bb
@@ -66,11 +66,11 @@ do_configure_prepend() {
}
do_install_append() {
- install -d ${D}/${localstatedir}/lib/mpd/music
- chmod 775 ${D}/${localstatedir}/lib/mpd/music
- install -d ${D}/${localstatedir}/lib/mpd/playlists
- chown -R mpd ${D}/${localstatedir}/lib/mpd
- chown mpd:mpd ${D}/${localstatedir}/lib/mpd/music
+ install -o mpd -d \
+ ${D}/${localstatedir}/lib/mpd \
+ ${D}/${localstatedir}/lib/mpd/playlists
+ install -m775 -o mpd -g mpd -d \
+ ${D}/${localstatedir}/lib/mpd/music
install -d ${D}/${sysconfdir}
install -m 644 ${WORKDIR}/mpd.conf.in ${D}/${sysconfdir}/mpd.conf