[DRE-commits] [gitlab] 04/05: make builds writeable

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Tue Apr 5 09:00:50 UTC 2016


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository gitlab.

commit 7ef398a1641390fc279343360c17e1f13913c739
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Tue Apr 5 14:27:56 2016 +0530

    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 2ce03a1..b30a00d 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 <praveen at debian.org>  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 0b6408c..bfcb5f1 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 aeec025..00a2b5b 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git



More information about the Pkg-ruby-extras-commits mailing list