ports/contrib (3.2): nginx: fixed pre-install script syntax
25 Feb
2016
25 Feb
'16
5:23 a.m.
commit cd444cfdf9189a53adab772678e1c714ecc48659 Author: Matt Housh <jaeger@crux.ninja> Date: Wed Feb 24 23:23:05 2016 -0600 nginx: fixed pre-install script syntax diff --git a/nginx/pre-install b/nginx/pre-install index 7488109..cb1068a 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
3247
Age (days ago)
3247
Last active (days ago)
0 comments
1 participants
participants (1)
-
crux@crux.nu