Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
feat(entrypoint): Skip redundant chown ops (#200)
Browse files Browse the repository at this point in the history
As discussed in getsentry/self-hosted#239 with some setups this chown takes over 20 minutes.
  • Loading branch information
stumbaumr authored and BYK committed Sep 4, 2019
1 parent b78b21a commit 9ef412f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 9.1/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ "$1" = 'sentry' ]; then
set -- tini -- "$@"
if [ "$(id -u)" = '0' ]; then
mkdir -p "$SENTRY_FILESTORE_DIR"
chown -R sentry "$SENTRY_FILESTORE_DIR"
find "$SENTRY_FILESTORE_DIR" ! -user sentry -exec chown sentry {} \;
set -- gosu sentry "$@"
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion git/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ "$1" = 'sentry' ]; then
set -- tini -- "$@"
if [ "$(id -u)" = '0' ]; then
mkdir -p "$SENTRY_FILESTORE_DIR"
chown -R sentry "$SENTRY_FILESTORE_DIR"
find "$SENTRY_FILESTORE_DIR" ! -user sentry -exec chown sentry {} \;
set -- gosu sentry "$@"
fi
fi
Expand Down

0 comments on commit 9ef412f

Please sign in to comment.