2010-12-14 17:55:28 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
ADD_USER=nginx
|
|
|
|
ADD_USER_HOME=/etc/nginx
|
|
|
|
ADD_USER_SHELL=/bin/false
|
|
|
|
ADD_GROUP=nginx
|
|
|
|
|
2012-05-07 21:10:17 +03:00
|
|
|
set -x -u -e
|
2010-12-14 17:55:28 +02:00
|
|
|
|
2012-05-07 21:10:17 +03:00
|
|
|
/usr/sbin/groupadd --system --force $ADD_GROUP
|
|
|
|
/usr/sbin/useradd --system --home $ADD_USER_HOME --shell $ADD_USER_SHELL --gid $ADD_GROUP $ADD_USER
|