summarylogtreecommitdiffstats
path: root/mpd.install
diff options
context:
space:
mode:
authorBruno Pagani2016-12-28 19:30:39 +0100
committerBruno Pagani2016-12-28 19:30:39 +0100
commit65856cbbe2324ce7dec86311f077a5ef14ac7928 (patch)
tree5c6cef3349bc2955b8225d4d8280267d28da35fb /mpd.install
parent2db46474a92d3d2306af27ee6af60085ca75782b (diff)
downloadaur-65856cbbe2324ce7dec86311f077a5ef14ac7928.tar.gz
Switch to systemd-sysusers and systemd-tmpfiles
Used for mpd user and dirs creation.
Diffstat (limited to 'mpd.install')
-rw-r--r--mpd.install5
1 files changed, 2 insertions, 3 deletions
diff --git a/mpd.install b/mpd.install
index cffab46a814e..891e1cc30e88 100644
--- a/mpd.install
+++ b/mpd.install
@@ -1,5 +1,4 @@
post_install() {
- getent group mpd &>/dev/null || groupadd -r -g 45 mpd >/dev/null
- getent passwd mpd &>/dev/null || useradd -r -u 45 -g mpd -d /var/lib/mpd -s /bin/false -G audio mpd >/dev/null
- usr/bin/systemd-tmpfiles --create mpd.conf || true
+ systemd-sysusers mpd.conf
+ systemd-tmpfiles --create mpd.conf
}