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>master
parent
476b333fbc
commit
e82a713c15
|
@ -922,12 +922,13 @@ of index files."
|
|||
(define php-fpm-accounts
|
||||
(match-lambda
|
||||
(($ <php-fpm-configuration> php socket user group socket-user socket-group _ _ _ _ _ _)
|
||||
(list
|
||||
(user-group (name "php-fpm") (system? #t))
|
||||
(user-group
|
||||
`(,@(if (equal? group "php-fpm")
|
||||
'()
|
||||
(list (user-group (name "php-fpm") (system? #t))))
|
||||
,(user-group
|
||||
(name group)
|
||||
(system? #t))
|
||||
(user-account
|
||||
,(user-account
|
||||
(name user)
|
||||
(group group)
|
||||
(supplementary-groups '("php-fpm"))
|
||||
|
|
Reference in New Issue