move uploads to /var
This commit is contained in:
parent
58ebc5700a
commit
c40b9fc787
2 changed files with 5 additions and 3 deletions
1
debian/gitlab.links
vendored
1
debian/gitlab.links
vendored
|
@ -1,3 +1,4 @@
|
|||
var/lib/gitlab/uploads usr/share/gitlab/public/uploads
|
||||
etc/gitlab/unicorn.rb usr/share/gitlab/config/unicorn.rb
|
||||
etc/gitlab/database.yml usr/share/gitlab/config/database.yml
|
||||
etc/gitlab/gitlab.yml usr/share/gitlab/config/gitlab.yml
|
||||
|
|
7
debian/postinst
vendored
7
debian/postinst
vendored
|
@ -40,10 +40,11 @@ case "$1" in
|
|||
. /usr/lib/gitlab/scripts/adduser.sh
|
||||
|
||||
gitlab_repo_path=${gitlab_data_dir}/repositories
|
||||
gitlab_uploads_path=${gitlab_data_dir}/uploads
|
||||
|
||||
# Create directories and change ownership
|
||||
for i in ${gitlab_repo_path} ${gitlab_pid_path} ${gitlab_log_dir}\
|
||||
${gitlab_shell_log}; do
|
||||
for i in ${gitlab_repo_path} ${gitlab_uploads_path} ${gitlab_pid_path}\
|
||||
${gitlab_log_dir} ${gitlab_shell_log}; do
|
||||
mkdir -p $i
|
||||
chown -R ${gitlab_user}: $i
|
||||
done
|
||||
|
@ -56,7 +57,7 @@ case "$1" in
|
|||
chown -R ${gitlab_user}: $i
|
||||
done
|
||||
|
||||
su ${gitlab_user} -s /bin/sh -c "mkdir -p -m 750 ${gitlab_home}/public/uploads"
|
||||
su ${gitlab_user} -s /bin/sh -c "chmod 750 ${gitlab_uploads_path}"
|
||||
su ${gitlab_user} -s /bin/sh -c "mkdir -p ${gitlab_pid_path}/pids"
|
||||
su ${gitlab_user} -s /bin/sh -c "mkdir -p ${gitlab_pid_path}/sockets"
|
||||
su ${gitlab_user} -s /bin/sh -c 'git config --global core.autocrlf "input"'
|
||||
|
|
Loading…
Reference in a new issue