mirror of
https://github.com/knadh/listmonk.git
synced 2025-02-28 16:24:35 +08:00
Don't fail on chown in Docker entry script. Closes #2104.
This commit is contained in:
parent
8ef71aa7a4
commit
136d9d1fa9
1 changed files with 4 additions and 2 deletions
|
@ -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}]"
|
||||
|
||||
|
|
Loading…
Reference in a new issue