forked from pokt-network/pocket-core
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applied latest changes made to PR pokt-network#1603 on official Pocke…
…t Repo.
- Loading branch information
1 parent
ea81842
commit c8215cb
Showing
5 changed files
with
67 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
datadir=$1 | ||
# Changing the permissions is necessary here because previous versions of our Dockerfile | ||
# did not specify `app` as the user, so Docker defaulted to `root`. | ||
# This script facilitates transition for those who have not specified the `app` user at the start of the container. | ||
# It changes the ownership to the proper user and group (`app:app`), as declared in the Dockerfile. | ||
# The specific ownership by user 'app' and group 'app' is required to ensure that the `app` user | ||
# specified in the Dockerfile will have full access to the relevant directory. | ||
echo "Attempting to fix ${datadir} permissions to be owned by app:app" | ||
chown -R app:app $datadir | ||
echo "${datadir} permissions applied." | ||
echo "Please turn off entrypoint override and ensure you are using user `app` or user `1005` when start container." | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters