2010-12-14 17:55:28 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-02-24 23:23:05 -06:00
|
|
|
if [ -z "`getent group nginx`" ]; then
|
2015-12-08 14:13:28 -06:00
|
|
|
/usr/sbin/groupadd --system nginx
|
2015-11-23 21:05:51 -06:00
|
|
|
fi
|
2010-12-14 17:55:28 +02:00
|
|
|
|
2016-02-24 23:23:05 -06:00
|
|
|
if [ -z "`getent passwd nginx`" ]; then
|
2015-12-08 14:13:28 -06:00
|
|
|
/usr/sbin/useradd -r -g nginx -d /etc/nginx -s /bin/false -c "nginx server" nginx
|
|
|
|
/usr/bin/passwd -l nginx
|
2015-11-23 21:05:51 -06:00
|
|
|
fi
|