Remove more chown -R commands

This commit is contained in:
Pirate Praveen 2018-10-13 22:14:59 +05:30
parent e7e1bdf31c
commit fbfd7b9f0c

View file

@ -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 "touch ${gitlab_data_dir}/.ssh/authorized_keys"
# Create .bundle for .bundle/config
mkdir -p ${gitlab_data_dir}/.bundle
chown -R ${gitlab_user}: ${gitlab_data_dir}/.bundle
runuser -u ${gitlab_user} -- sh -c "mkdir -p ${gitlab_data_dir}/.bundle"
# Create locale for app/assets/javascripts/locale
mkdir -p ${gitlab_data_dir}/locale
chown -R ${gitlab_user}: ${gitlab_data_dir}/locale
runuser -u ${gitlab_user} -- sh -c "mkdir -p ${gitlab_data_dir}/locale"
# Create more required directories
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
mkdir -p $i
chown -R ${gitlab_user}: $i
runuser -u ${gitlab_user} -- sh -c "mkdir -p $i"
done
# nginx/httpd should be able to connect to gitlab-workhorse.socket and serve public