Skip to content
Snippets Groups Projects
Commit e75d354b authored by Jason Plum's avatar Jason Plum
Browse files

Docker: update-permissions, only touch registry if exists

Add an exists check to the `update-permissions` script, so that it only attempts to set the permissions on the registry (`/var/opt/gitlab/gitlab-rails/shared/registry`) if it actually exists.

This removes the spurious "fail" on setting permissions on things that don't exist, and allows for better scripting compatability.

Fixes #2074
parent 08158674
No related branches found
No related tags found
1 merge request!1688Docker: update-permissions, only touch registry if exists
Loading
Loading
@@ -45,6 +45,6 @@ if id -u gitlab-redis; then
fi
 
# Fix registry storage
if id -u registry; then
if id -u registry && [ -e /var/opt/gitlab/gitlab-rails/shared/registry ] ; then
chown -R registry:registry /var/opt/gitlab/gitlab-rails/shared/registry
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment