forked from ports/contrib
12 lines
255 B
Bash
Executable File
12 lines
255 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ADD_USER=nginx
|
|
ADD_USER_HOME=/etc/nginx
|
|
ADD_USER_SHELL=/bin/false
|
|
ADD_GROUP=nginx
|
|
|
|
set -x -u -e
|
|
|
|
/usr/sbin/groupadd --system --force $ADD_GROUP
|
|
/usr/sbin/useradd --system --home $ADD_USER_HOME --shell $ADD_USER_SHELL --gid $ADD_GROUP $ADD_USER
|