nginx: Fix user on Ubuntu
This commit is contained in:
parent
0819a1e0fb
commit
7f608988ba
2 changed files with 9 additions and 3 deletions
|
@ -19,10 +19,12 @@ class abusesa::services(
|
|||
],
|
||||
}
|
||||
|
||||
include nginx
|
||||
|
||||
exec { 'usermod-nginx-abuserv':
|
||||
path => '/bin:/usr/bin:/sbin:/usr/sbin',
|
||||
command => 'usermod -a -G abuserv nginx',
|
||||
unless => 'id -n -G nginx | grep \'\babuserv\b\'',
|
||||
command => "usermod -a -G abuserv ${nginx::user}",
|
||||
unless => "id -n -G ${nginx::user} | grep '\\babuserv\\b'",
|
||||
require => [
|
||||
Class['nginx'],
|
||||
Group['abuserv'],
|
||||
|
@ -47,7 +49,6 @@ class abusesa::services(
|
|||
content => "umask 007\n",
|
||||
}
|
||||
|
||||
include nginx
|
||||
nginx::config { 'abusesa.conf':
|
||||
content => template('abusesa/services/nginx.conf.erb'),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue