Skip to content

Commit fac64ed

Browse files
balasankarcManuel Grabowski
andcommitted
Merge branch 'mg-fix-registry-permissions-20231205' into 'master'
Fix permission issues within Registry data See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7283 Merged-by: Balasankar 'Balu' C <[email protected]> Approved-by: Mitchell Nielsen <[email protected]> Approved-by: Balasankar 'Balu' C <[email protected]> Reviewed-by: Balasankar 'Balu' C <[email protected]> Co-authored-by: Manuel Grabowski <[email protected]>
2 parents 84fef64 + 2cfe95c commit fac64ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker/assets/update-permissions

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ fi
9191

9292
# Fix registry storage
9393
if id -u registry; then
94-
chown_if_exists -R registry:git /var/opt/gitlab/gitlab-rails/shared/registry
94+
if [ -e "/var/opt/gitlab/gitlab-rails/shared/registry" ]; then
95+
find /var/opt/gitlab/gitlab-rails/shared/registry -type d -exec chmod 755 {} \;
96+
find /var/opt/gitlab/gitlab-rails/shared/registry -type f -exec chmod 744 {} \;
97+
fi
98+
chown_if_exists -R registry:git /var/opt/gitlab/gitlab-rails/shared/registry
9599
fi
96100

97101
# Fix mattermost storage

0 commit comments

Comments
 (0)