nginx: fixed pre-install script syntax

This commit is contained in:
Matt Housh 2016-02-24 23:23:05 -06:00
parent a43b9446a6
commit cd444cfdf9

View File

@ -1,10 +1,10 @@
#!/bin/sh
if [ -z `getent group nginx` ]; then
if [ -z "`getent group nginx`" ]; then
/usr/sbin/groupadd --system nginx
fi
if [ -z `getent passwd nginx` ]; then
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