summaryrefslogtreecommitdiff
path: root/nginx/pre-install
blob: cb1068abc728e309198c1af7bfa7a6de910dc165 (plain)
    1 #!/bin/sh
    2 
    3 if [ -z "`getent group nginx`" ]; then
    4 	/usr/sbin/groupadd --system nginx
    5 fi
    6 
    7 if [ -z "`getent passwd nginx`" ]; then
    8 	/usr/sbin/useradd -r -g nginx -d /etc/nginx -s /bin/false -c "nginx server" nginx
    9 	/usr/bin/passwd -l nginx
   10 fi

Generated by cgit