mirror of
https://github.com/Forceu/Gokapi.git
synced 2025-12-16 22:55:36 -06:00
* 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>
17 lines
584 B
Bash
Executable File
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
|
|
|