1
0
forked from ports/contrib
contrib-tek/nginx/pre-install

11 lines
241 B
Plaintext
Raw Normal View History

#!/bin/sh
2016-02-24 23:23:05 -06:00
if [ -z "`getent group nginx`" ]; then
/usr/sbin/groupadd --system nginx
fi
2016-02-24 23:23:05 -06:00
if [ -z "`getent passwd nginx`" ]; then
/usr/sbin/useradd -r -g nginx -d /etc/nginx -s /bin/false -c "nginx server" nginx
/usr/bin/passwd -l nginx
fi