Files
Gokapi/dockerentry.sh
spaghetti-coder 84eb70edbb Add deprecation alerts, deprecate DOCKER_NONROOT in favor of docker --user ... (#327)
* deprecate DOCKER_NONROOT in favor of docker --user ...

* remove redundant named volumes creation in compose
* remove DOCKER_NONROOT from demo env file
* add deprecation warning to docker entrypoint
* update documentation

* Added feature to show deprecation messages in UI and logs
Added deprecation message for Docker_NONROOT
Fixed documentation

---------

Co-authored-by: Marc Ole Bulling <Marc-Ole@gmx.de>
2025-11-04 22:26:04 +01:00

17 lines
584 B
Bash
Executable File

#!/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