koskur.sh 211 B

12345678910
  1. #!/bin/sh
  2. if [ -z "`getent group nginx`" ]; then
  3. groupadd --system nginx
  4. fi
  5. if [ -z "`getent passwd nginx`" ]; then
  6. useradd -r -g nginx -d /etc/nginx -s /bin/false -c "nginx server" nginx
  7. passwd -l nginx
  8. fi