Skip to content

Commit

Permalink
Merge pull request #854 from infosiftr/chown-no-dereference
Browse files Browse the repository at this point in the history
Add "--no-dereference" to avoid attempts to chown a broken symlink
  • Loading branch information
tianon authored May 23, 2022
2 parents a54bc0f + 275e982 commit 32aecb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 5.7/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion 8.0/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion template/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ docker_create_db_directories() {

if [ "$user" = "0" ]; then
# this will cause less disk access than `chown -R`
find "$DATADIR" \! -user mysql -exec chown mysql '{}' +
find "$DATADIR" \! -user mysql -exec chown --no-dereference mysql '{}' +
fi
}

Expand Down

0 comments on commit 32aecb7

Please sign in to comment.