mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
init: fix find command to correctly ignore the GITLAB_DATA_DIR in uid mapping
This commit is contained in:
parent
55fa954edc
commit
f7d5f080e2
@ -154,7 +154,7 @@ if [ "${USERMAP_UID}" != "${USERMAP_ORIG_UID}" ] || [ "${USERMAP_GID}" != "${USE
|
||||
echo "Adapting uid and gid for git:git to $USERMAP_UID:$USERMAP_GID"
|
||||
groupmod -g "${USERMAP_GID}" git
|
||||
sed -i -e "s/:${USERMAP_ORIG_UID}:${USERMAP_GID}:/:${USERMAP_UID}:${USERMAP_GID}:/" /etc/passwd
|
||||
find ${GITLAB_HOME} -not -path "${GITLAB_DATA_DIR}/*" -print0 | xargs -0 chown -h git:git
|
||||
find ${GITLAB_HOME} -path ${GITLAB_DATA_DIR}/\* -prune -o -print0 | xargs -0 chown -h git:git
|
||||
fi
|
||||
|
||||
##
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user