mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
services: mpd: Make /var/run/mpd/USER user-owned.
Fixes <https://bugs.gnu.org/44820>.
Reported by Simon <lists@netpanic.org>.
This is a followup to bb124f6e9c
.
* gnu/services/audio.scm (mpd-service-activation): Chown the parent of
DIRECTORY as well.
This commit is contained in:
parent
383f087cd7
commit
ce3b5e5a8d
1 changed files with 5 additions and 1 deletions
|
@ -163,7 +163,11 @@ (define %user
|
|||
|
||||
(let ((directory #$(mpd-file-name config ".mpd")))
|
||||
(mkdir-p directory)
|
||||
(chown directory (passwd:uid %user) (passwd:gid %user))))))
|
||||
(chown directory (passwd:uid %user) (passwd:gid %user))
|
||||
|
||||
;; Make /var/run/mpd/USER user-owned as well.
|
||||
(chown (dirname directory)
|
||||
(passwd:uid %user) (passwd:gid %user))))))
|
||||
|
||||
|
||||
(define %mpd-accounts
|
||||
|
|
Loading…
Reference in a new issue