[DRE-commits] [gitlab] 01/01: handle gitlab-shell log

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Jan 22 05:22:18 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 7a159fb956e3d74dd125ea23cdb4bc8f4551c00b
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Fri Jan 22 10:44:53 2016 +0530

    handle gitlab-shell log
---
 debian/conf/gitlab-debian.conf | 3 ++-
 debian/postinst                | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/conf/gitlab-debian.conf b/debian/conf/gitlab-debian.conf
index 0cafa07..fb14aa5 100644
--- a/debian/conf/gitlab-debian.conf
+++ b/debian/conf/gitlab-debian.conf
@@ -5,4 +5,5 @@ export gitlab_data_dir=/var/lib/gitlab
 export gitlab_scripts=/usr/lib/gitlab/scripts
 export gitlab_nginx_log=/var/log/gitlab
 export gitlab_ssl_path=/etc/gitlab/ssl
-
+export gitlab-shell_root=/usr/share/gitlab-shell
+export gitlab-shell_log=/var/log/gitlab-shell
diff --git a/debian/postinst b/debian/postinst
index 1fb0332..f98cd9d 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -38,7 +38,9 @@ case "$1" in
 	chown -R ${gitlab_user}: ${gitlab_home}
 	chown -R ${gitlab_user}: ${gitlab_data_dir}
 
-	chown -R ${gitlab_user}: /usr/share/gitlab-shell
+	mkdir -p ${gitlab-shell_log}
+	chown -R ${gitlab_user}: ${gitlab-shell_root}
+	chown -R ${gitlab_user}: ${gitlab-shell_log}
 	su ${gitlab_user} -s /bin/sh -c "mkdir -p -m 750 ${gitlab_home}/public/uploads"
 	su ${gitlab_user} -s /bin/sh -c 'git config --global core.autocrlf "input"'
 	cd ${gitlab_home}

-- 
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