Maybe, it should rather go to logs dir
Patch v2 attached, again, untested ;)
Libor
diff -ur a/debian/gitlab.links b/debian/gitlab.links
--- a/debian/gitlab.links 2016-03-13 07:21:05.000000000 +0100
+++ b/debian/gitlab.links 2016-04-03 20:58:06.683043165 +0200
@@ -1,6 +1,7 @@
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/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
diff -ur a/debian/postinst b/debian/postinst
--- a/debian/postinst 2016-02-18 18:12:11.000000000 +0100
+++ b/debian/postinst 2016-04-03 21:00:37.922038434 +0200
@@ -39,13 +39,14 @@
# 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