mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 13:18:14 -05:00
56a92e5c0e
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
20 lines
409 B
Bash
Executable File
20 lines
409 B
Bash
Executable File
#!/command/with-contenv bash
|
|
# shellcheck shell=bash
|
|
|
|
set -e
|
|
|
|
echo
|
|
echo "-------------------------------------
|
|
_ _ ____ __ __
|
|
| \ | | _ \| \/ |
|
|
| \| | |_) | |\/| |
|
|
| |\ | __/| | | |
|
|
|_| \_|_| |_| |_|
|
|
-------------------------------------"
|
|
if [[ "$PUID" -ne '0' ]]; then
|
|
echo "User UID: $(id -u npmuser)"
|
|
echo "User GID: $(id -g npmuser)"
|
|
echo "-------------------------------------"
|
|
fi
|
|
echo
|