| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 | #!/bin/bashset -eCYAN='\E[1;36m'BLUE='\E[1;34m'YELLOW='\E[1;33m'RED='\E[1;31m'RESET='\E[0m'export CYAN BLUE YELLOW RED RESETPUID=${PUID:-0}PGID=${PGID:-0}# If changing the username and group name below,# ensure all references to this user is also changed.# See docker/rootfs/etc/logrotate.d/nginx-proxy-manager# and docker/rootfs/etc/nginx/nginx.confNPMUSER=npmNPMGROUP=npmNPMHOME=/tmp/npmuserhomeexport NPMUSER NPMGROUP NPMHOMEif [[ "$PUID" -ne '0' ]] && [ "$PGID" = '0' ]; then	# set group id to same as user id,	# the user probably forgot to specify the group id and	# it would be rediculous to intentionally use the root group	# for a non-root user	PGID=$PUIDfiexport PUID PGIDlog_info () {	echo -e "${BLUE}❯ ${CYAN}$1${RESET}"}log_error () {	echo -e "${RED}❯ $1${RESET}"}# The `run` file will only execute 1 line so this helps keep things# logically separatedlog_fatal () {	echo -e "${RED}--------------------------------------${RESET}"	echo -e "${RED}ERROR: $1${RESET}"	echo -e "${RED}--------------------------------------${RESET}"	/run/s6/basedir/bin/halt	exit 1}# param $1: group_nameget_group_id () {	if [ "${1:-}" != '' ]; then		getent group "$1" | cut -d: -f3	fi}
 |