diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-17 14:27:48 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-17 14:27:48 +0200 |
commit | 519db946405f2bfc0d205967e621ac03c420cd81 (patch) | |
tree | 944e197cf9bdf906ba408276a3dbc02f82ccbf24 /package/mpd/files/mpd.postinst | |
parent | f16e906c9dae3ce783bb7ece087ec7d5ecc9f9b7 (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.postinst | 3 |
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 |