create cache in /var/lib/gitlab

This commit is contained in:
Praveen Arimbrathodiyil 2016-02-18 22:42:43 +05:30
parent 7fc97ee4a2
commit 3b26830969
2 changed files with 4 additions and 2 deletions

1
debian/gitlab.links vendored
View file

@ -1,4 +1,5 @@
var/lib/gitlab/public usr/share/gitlab/public var/lib/gitlab/public usr/share/gitlab/public
var/lib/gitlab/cache usr/share/gitlab/shared/cache
var/log/gitlab usr/share/gitlab/log var/log/gitlab usr/share/gitlab/log
run/gitlab usr/share/gitlab/tmp run/gitlab usr/share/gitlab/tmp
etc/gitlab usr/share/gitlab/config etc/gitlab usr/share/gitlab/config

5
debian/postinst vendored
View file

@ -40,11 +40,12 @@ case "$1" in
. /usr/lib/gitlab/scripts/adduser.sh . /usr/lib/gitlab/scripts/adduser.sh
gitlab_repo_path=${gitlab_data_dir}/repositories gitlab_repo_path=${gitlab_data_dir}/repositories
gitlab_cache_path=${gitlab_data_dir}/cache
gitlab_uploads_path=${gitlab_data_dir}/public/uploads gitlab_uploads_path=${gitlab_data_dir}/public/uploads
# Create directories and change ownership # Create directories and change ownership
for i in ${gitlab_repo_path} ${gitlab_uploads_path} ${gitlab_pid_path}\ for i in ${gitlab_repo_path} ${gitlab_cache_path} ${gitlab_uploads_path}\
${gitlab_log_dir} ${gitlab_shell_log}; do ${gitlab_pid_path} ${gitlab_log_dir} ${gitlab_shell_log}; do
mkdir -p $i mkdir -p $i
chown -R ${gitlab_user}: $i chown -R ${gitlab_user}: $i
done done