summaryrefslogtreecommitdiff
path: root/package/mpd/files/mpd.postinst
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-17 14:27:48 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-17 14:27:48 +0200
commit519db946405f2bfc0d205967e621ac03c420cd81 (patch)
tree944e197cf9bdf906ba408276a3dbc02f82ccbf24 /package/mpd/files/mpd.postinst
parentf16e906c9dae3ce783bb7ece087ec7d5ecc9f9b7 (diff)
put state file on /data and run as non-root again, as discussed with joern
Diffstat (limited to 'package/mpd/files/mpd.postinst')
-rw-r--r--package/mpd/files/mpd.postinst3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/mpd/files/mpd.postinst b/package/mpd/files/mpd.postinst
index b2d70b269..d7ca3edbd 100644
--- a/package/mpd/files/mpd.postinst
+++ b/package/mpd/files/mpd.postinst
@@ -1,3 +1,6 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
add_rcconf mpd NO
+gid=$(get_next_gid)
+add_group mpd $gid
+add_user mpd $(get_next_uid) $gid /music