From e8804dd7b134d88f35b82dcc99704b4243a64136 Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Sat, 13 Oct 2018 23:40:45 +0530 Subject: [PATCH] Fix ownership of gitlab_data_dir/public --- debian/gitlab.postinst | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/gitlab.postinst b/debian/gitlab.postinst index 9cae58fd45..bd564d5b3a 100755 --- a/debian/gitlab.postinst +++ b/debian/gitlab.postinst @@ -100,6 +100,7 @@ case "$1" in # Create locale for app/assets/javascripts/locale runuser -u ${gitlab_user} -- sh -c "mkdir -p ${gitlab_data_dir}/locale" # Create more required directories + chown ${gitlab_user} ${gitlab_data_dir}/public for i in ${gitlab_repo_path} ${gitlab_cache_path} ${gitlab_uploads_path}\ ${gitlab_pid_path} ${gitlab_log_dir} ${gitlab_shell_log} ${gitlab_builds_log}; do runuser -u ${gitlab_user} -- sh -c "mkdir -p $i"