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
 | 
			
		||||
  (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 a new issue