update-permissions doesn't set all permissions for nginx
I'm running Gitlab on a Synology Rackstation through their official Docker plugin and also maintain several (docker-based) GitLab installations on virtual servers.
On my virtual servers, I never had any permission problems, but because the Synology Rackstation is mainly meant for file storage, from time to time I have to update the permissions, because something has changed the permissions of the underlying folders.
Fortunately, the GitLab container comes with a handy tool called update-permissions
which should fix the permissions inside the container. When I run this script, I realized most permissions will be set, but for some reason, the permissions of /var/opt/gitlab/nginx
remain wrong and I have to execute:
chown gitlab-www:gitlab-www /var/opt/gitlab/nginx
to fix the problem. I would be glad if this command could be included in the update-permissions script and if the update-permissions
script could be executed on container startup (possibly controlled by an environment variable), so that I can seamlessly run GitLab on my Rackstation.
I will try to fix the update-permissions
script manually and submit a merge request.