Archived
1
0
Fork 0

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:
Julien Lepiller 2021-01-16 20:42:32 +01:00 committed by Leo Prikler
parent 476b333fbc
commit e82a713c15
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -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"))