Skip to content

Commit

Permalink
Don't fail on chown in Docker entry script. Closes #2104.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 28, 2024
1 parent 8ef71aa commit 136d9d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ create_user() {
create_group
create_user

# Set the ownership of the app directory to the app user
chown -R ${PUID}:${PGID} /listmonk
# Try to set the ownership of the app directory to the app user.
if ! chown -R ${PUID}:${PGID} /listmonk 2>/dev/null; then
echo "Warning: Failed to change ownership of /listmonk. Readonly volume?"
fi

echo "Launching listmonk with user=[${USER_NAME}] group=[${GROUP_NAME}] PUID=[${PUID}] PGID=[${PGID}]"

Expand Down

0 comments on commit 136d9d1

Please # to comment.