run 241 B

1234567891011121314
  1. #!/command/with-contenv bash
  2. # shellcheck shell=bash
  3. set -e
  4. . /bin/common.sh
  5. if [ "$PUID" = '0' ]; then
  6. log_info 'Starting nginx ...'
  7. exec nginx
  8. else
  9. log_info "Starting nginx as npmuser ($PUID) ..."
  10. exec s6-setuidgid npmuser nginx
  11. fi