summaryrefslogtreecommitdiff
path: root/nginx/pre-install
diff options
context:
space:
mode:
authorMatt Housh <jaeger@crux.ninja>2016-02-24 23:23:05 -0600
committerMatt Housh <jaeger@crux.ninja>2016-02-24 23:23:05 -0600
commitcd444cfdf9189a53adab772678e1c714ecc48659 (patch)
tree6f01513a45a3ac523d122b78468001c4337a268c /nginx/pre-install
parenta43b9446a6e5b2db635f472332811e3b77fe6779 (diff)
downloadcontrib-cd444cfdf9189a53adab772678e1c714ecc48659.tar.gz
contrib-cd444cfdf9189a53adab772678e1c714ecc48659.tar.xz
nginx: fixed pre-install script syntax
Diffstat (limited to 'nginx/pre-install')
-rwxr-xr-xnginx/pre-install4
1 files changed, 2 insertions, 2 deletions
diff --git a/nginx/pre-install b/nginx/pre-install
index 748810949..cb1068abc 100755
--- a/nginx/pre-install
+++ b/nginx/pre-install
@@ -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

Generated by cgit