gnu: php-fpm: Ensure no duplicate group.
* gnu/services/web.scm (php-fpm-accounts): Ensure `php-fpm` group is not duplicated. Signed-off-by: Leo Prikler <leo.prikler@student.tugraz.at>
This commit is contained in:
parent
476b333fbc
commit
e82a713c15
1 changed files with 14 additions and 13 deletions
|
@ -922,12 +922,13 @@ of index files."
|
||||||
(define php-fpm-accounts
|
(define php-fpm-accounts
|
||||||
(match-lambda
|
(match-lambda
|
||||||
(($ <php-fpm-configuration> php socket user group socket-user socket-group _ _ _ _ _ _)
|
(($ <php-fpm-configuration> php socket user group socket-user socket-group _ _ _ _ _ _)
|
||||||
(list
|
`(,@(if (equal? group "php-fpm")
|
||||||
(user-group (name "php-fpm") (system? #t))
|
'()
|
||||||
(user-group
|
(list (user-group (name "php-fpm") (system? #t))))
|
||||||
|
,(user-group
|
||||||
(name group)
|
(name group)
|
||||||
(system? #t))
|
(system? #t))
|
||||||
(user-account
|
,(user-account
|
||||||
(name user)
|
(name user)
|
||||||
(group group)
|
(group group)
|
||||||
(supplementary-groups '("php-fpm"))
|
(supplementary-groups '("php-fpm"))
|
||||||
|
|
Reference in a new issue