From 579d544110d3260e38e2af5aeaef39580f6d0057 Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Wed, 22 Apr 2020 23:48:22 +0530 Subject: [PATCH] Make db/structure.sql writable by gitlab user --- debian/gitlab.postinst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/gitlab.postinst b/debian/gitlab.postinst index 26b419fafc..b770cd0118 100755 --- a/debian/gitlab.postinst +++ b/debian/gitlab.postinst @@ -129,6 +129,9 @@ case "$1" in # Make yarn.lock writable chown ${gitlab_user}: /var/lib/gitlab/yarn.lock + # Make db/structure.sql writable + chown ${gitlab_user}: /var/lib/gitlab/db/structure.sql + runuser -u ${gitlab_user} -- sh -c "chmod 700 ${gitlab_uploads_path}" runuser -u ${gitlab_user} -- sh -c 'git config --global core.autocrlf "input"'