Fix ownership of gitlab_data_dir/public
This commit is contained in:
parent
8f98f06935
commit
e8804dd7b1
1 changed files with 1 additions and 0 deletions
1
debian/gitlab.postinst
vendored
1
debian/gitlab.postinst
vendored
|
@ -100,6 +100,7 @@ case "$1" in
|
||||||
# Create locale for app/assets/javascripts/locale
|
# Create locale for app/assets/javascripts/locale
|
||||||
runuser -u ${gitlab_user} -- sh -c "mkdir -p ${gitlab_data_dir}/locale"
|
runuser -u ${gitlab_user} -- sh -c "mkdir -p ${gitlab_data_dir}/locale"
|
||||||
# Create more required directories
|
# Create more required directories
|
||||||
|
chown ${gitlab_user} ${gitlab_data_dir}/public
|
||||||
for i in ${gitlab_repo_path} ${gitlab_cache_path} ${gitlab_uploads_path}\
|
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
|
${gitlab_pid_path} ${gitlab_log_dir} ${gitlab_shell_log} ${gitlab_builds_log}; do
|
||||||
runuser -u ${gitlab_user} -- sh -c "mkdir -p $i"
|
runuser -u ${gitlab_user} -- sh -c "mkdir -p $i"
|
||||||
|
|
Loading…
Reference in a new issue