mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 02:06:25 +00:00
Run as root by default
Optionally run as another user/group only if the env vars are specified. Should give flexibility to those who need to run processes as root and open ports without having to request additional priveleges
This commit is contained in:
@ -5,6 +5,10 @@ set -e
|
||||
|
||||
. /bin/common.sh
|
||||
|
||||
log_info 'Starting nginx ...'
|
||||
|
||||
exec s6-setuidgid npmuser nginx
|
||||
if [ "$PUID" = '0' ]; then
|
||||
log_info 'Starting nginx ...'
|
||||
exec nginx
|
||||
else
|
||||
log_info "Starting nginx as npmuser ($PUID) ..."
|
||||
exec s6-setuidgid npmuser nginx
|
||||
fi
|
||||
|
Reference in New Issue
Block a user