mirror of
				https://github.com/casjaysdevdocker/couchdb
				synced 2025-11-04 01:02:43 -05:00 
			
		
		
		
	🗃 Modified: rootfs/usr/local/etc/docker/init.d/zz-nginx.sh 🗃
Modified: rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
This commit is contained in:
		@@ -441,7 +441,7 @@ fi
 | 
			
		||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 | 
			
		||||
# set switch user command
 | 
			
		||||
if [ "$SERVICE_USER" = "root" ] || [ -z "$SERVICE_USER" ]; then
 | 
			
		||||
  su_cmd() { eval "$*" || return 1; }
 | 
			
		||||
  su_cmd() { eval "$@" || return 1; }
 | 
			
		||||
elif [ "$(builtin type -P gosu)" ]; then
 | 
			
		||||
  su_cmd() { gosu $SERVICE_USER "$@" || return 1; }
 | 
			
		||||
elif [ "$(builtin type -P runuser)" ]; then
 | 
			
		||||
@@ -452,7 +452,7 @@ elif [ "$(builtin type -P su)" ]; then
 | 
			
		||||
  su_cmd() { su -s /bin/sh - $SERVICE_USER -c "$@" || return 1; }
 | 
			
		||||
else
 | 
			
		||||
  echo "Can not switch to $SERVICE_USER: attempting to run as root"
 | 
			
		||||
  su_cmd() { eval "$*" || return 1; }
 | 
			
		||||
  su_cmd() { eval "$@" || return 1; }
 | 
			
		||||
fi
 | 
			
		||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 | 
			
		||||
# Change to working directory
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user