Fix file system permissions
This commit is contained in:
parent
9cbefd80a6
commit
a16915ae2f
2 changed files with 9 additions and 3 deletions
3
debian/gitlab.dirs
vendored
Normal file
3
debian/gitlab.dirs
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
/var/cache/gitlab
|
||||||
|
/var/log/gitlab
|
||||||
|
/var/log/gitlab-shell
|
9
debian/gitlab.postinst
vendored
9
debian/gitlab.postinst
vendored
|
@ -100,9 +100,12 @@ 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
|
mkdir -p ${gitlab_pid_path}
|
||||||
for i in ${gitlab_repo_path} ${gitlab_cache_path} ${gitlab_uploads_path}\
|
chown ${gitlab_user}: ${gitlab_data_dir}/public ${gitlab_cache_path} \
|
||||||
${gitlab_pid_path} ${gitlab_log_dir} ${gitlab_shell_log} ${gitlab_builds_log}; do
|
${gitlab_log_dir} ${gitlab_shell_log} ${gitlab_pid_path} \
|
||||||
|
${gitlab_data_dir}/db ${gitlab_data_dir}/locale
|
||||||
|
for i in ${gitlab_repo_path} ${gitlab_uploads_path}\
|
||||||
|
${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"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue