Remove more chown -R commands
This commit is contained in:
parent
e7e1bdf31c
commit
fbfd7b9f0c
1 changed files with 3 additions and 6 deletions
9
debian/gitlab.postinst
vendored
9
debian/gitlab.postinst
vendored
|
@ -96,16 +96,13 @@ case "$1" in
|
||||||
runuser -u ${gitlab_user} -- sh -c "mkdir -p ${gitlab_data_dir}/.ssh"
|
runuser -u ${gitlab_user} -- sh -c "mkdir -p ${gitlab_data_dir}/.ssh"
|
||||||
runuser -u ${gitlab_user} -- sh -c "touch ${gitlab_data_dir}/.ssh/authorized_keys"
|
runuser -u ${gitlab_user} -- sh -c "touch ${gitlab_data_dir}/.ssh/authorized_keys"
|
||||||
# Create .bundle for .bundle/config
|
# Create .bundle for .bundle/config
|
||||||
mkdir -p ${gitlab_data_dir}/.bundle
|
runuser -u ${gitlab_user} -- sh -c "mkdir -p ${gitlab_data_dir}/.bundle"
|
||||||
chown -R ${gitlab_user}: ${gitlab_data_dir}/.bundle
|
|
||||||
# Create locale for app/assets/javascripts/locale
|
# Create locale for app/assets/javascripts/locale
|
||||||
mkdir -p ${gitlab_data_dir}/locale
|
runuser -u ${gitlab_user} -- sh -c "mkdir -p ${gitlab_data_dir}/locale"
|
||||||
chown -R ${gitlab_user}: ${gitlab_data_dir}/locale
|
|
||||||
# Create more required directories
|
# Create more required directories
|
||||||
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
|
||||||
mkdir -p $i
|
runuser -u ${gitlab_user} -- sh -c "mkdir -p $i"
|
||||||
chown -R ${gitlab_user}: $i
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# nginx/httpd should be able to connect to gitlab-workhorse.socket and serve public
|
# nginx/httpd should be able to connect to gitlab-workhorse.socket and serve public
|
||||||
|
|
Loading…
Reference in a new issue