make builds writeable

This commit is contained in:
Praveen Arimbrathodiyil 2016-04-05 14:27:56 +05:30
parent 35848950c3
commit 7ef398a164
3 changed files with 6 additions and 1 deletions

3
debian/changelog vendored
View file

@ -5,6 +5,9 @@ gitlab (8.5.8+dfsg-4) UNRELEASED; urgency=medium
* Run db:migrate when db exist
* Restrict file permissions for secret files (Closes: #819412)
[ Libor Klepáč ]
* Create builds directory in /var/log (Closes: #819907)
-- Pirate Praveen <praveen@debian.org> Tue, 05 Apr 2016 11:38:52 +0530
gitlab (8.5.8+dfsg-3) unstable; urgency=medium

1
debian/gitlab.links vendored
View file

@ -1,6 +1,7 @@
var/lib/gitlab/public usr/share/gitlab/public
var/lib/gitlab/shared usr/share/gitlab/shared
var/log/gitlab usr/share/gitlab/log
var/log/gitlab/builds usr/share/gitlab/builds
run/gitlab usr/share/gitlab/tmp
etc/gitlab usr/share/gitlab/config
usr/share/javascript/jquery-history/jquery.history.min.js usr/share/gitlab/vendor/assets/javascripts/jquery.history.js

3
debian/postinst vendored
View file

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