Skip to content

Commit

Permalink
fix: revert #1443 of mapping uid and gid
Browse files Browse the repository at this point in the history
This is only a revert only of #1443 to get back in functional working.

Closes #2144
  • Loading branch information
solidnerd committed May 25, 2020
1 parent e2720dc commit 1c3c1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/runtime/functions
Expand Up @@ -1311,7 +1311,7 @@ map_uidgid() {
echo "Mapping UID and GID for ${GITLAB_USER}:${GITLAB_USER} to $USERMAP_UID:$USERMAP_GID"
groupmod -o -g ${USERMAP_GID} ${GITLAB_USER}
sed -i -e "s|:${USERMAP_ORIG_UID}:${USERMAP_GID}:|:${USERMAP_UID}:${USERMAP_GID}:|" /etc/passwd
find ${GITLAB_HOME} -path ${GITLAB_DATA_DIR}/\* \( ! -uid ${USERMAP_ORIG_UID} -o ! -gid ${USERMAP_ORIG_GID} \) -print0 | xargs -0 chown -h ${GITLAB_USER}: ${GITLAB_HOME}
find ${GITLAB_HOME} -path ${GITLAB_DATA_DIR}/\* -prune -o -print0 | xargs -0 chown -h ${GITLAB_USER}:
fi
}

Expand Down

0 comments on commit 1c3c1aa

Please sign in to comment.