| # preinst script for nginx |
| # creating nginx group if he isn't already there |
| if ! getent group nginx >/dev/null; then |
| addgroup --system nginx >/dev/null |
| # creating nginx user if he isn't already there |
| if ! getent passwd nginx >/dev/null; then |
| ---------------------------------------------------------------------- |
| Please find the official documentation for nginx here: |
| * http://nginx.org/en/docs/ |
| Please subscribe to nginx-announce mailing list to get |
| the most important news about nginx: |
| * http://nginx.org/en/support.html |
| Commercial subscriptions for nginx are available on: |
| * http://nginx.com/products/ |
| ---------------------------------------------------------------------- |
| echo "preinst called with unknown argument \`$1'" >&2 |