Ctrl K
ComunidadGuías…

dockerentry.sh

Rama master · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
#!/bin/sh
#DEPRECATED, see https://gokapi.readthedocs.io/en/latest/setup.html#migration-from-docker-nonroot-to-docker-user
if [ "$DOCKER_NONROOT" = "true" ]; then
	# TODO for the next major upgrade version:
	# 	- Remove this code block and leave only exec /app/gokapi "@"
	# 	- Remove gokapi user / group creation in Dockerfile
	# 	- Remove su-exec installation from the Dockerfile
	echo "Setting permissions" && \
	chown -R gokapi:gokapi /app && \
	chmod -R 700 /app && \
	echo "Starting application" && \
	exec su-exec gokapi:gokapi /app/gokapi "$@"
else
	exec /app/gokapi "$@"
fi