From 7ef398a1641390fc279343360c17e1f13913c739 Mon Sep 17 00:00:00 2001 From: Praveen Arimbrathodiyil Date: Tue, 5 Apr 2016 14:27:56 +0530 Subject: [PATCH] make builds writeable --- debian/changelog | 3 +++ debian/gitlab.links | 1 + debian/postinst | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 2ce03a14c7..b30a00dd9e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 05 Apr 2016 11:38:52 +0530 gitlab (8.5.8+dfsg-3) unstable; urgency=medium diff --git a/debian/gitlab.links b/debian/gitlab.links index 0b6408c196..bfcb5f1dec 100644 --- a/debian/gitlab.links +++ b/debian/gitlab.links @@ -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 diff --git a/debian/postinst b/debian/postinst index aeec0256ca..00a2b5b4a0 100755 --- a/debian/postinst +++ b/debian/postinst @@ -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