forked from ports/contrib
nginx: fixed pre-install script syntax
This commit is contained in:
parent
a43b9446a6
commit
cd444cfdf9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user