[DRE-commits] [gitlab] 02/03: fix hardcoded path

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Thu Dec 17 12:17:18 UTC 2015


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

praveen pushed a commit to branch master
in repository gitlab.

commit e13004a1e8c879503346ade6aa28b247139a73a3
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Thu Dec 17 16:44:50 2015 +0530

    fix hardcoded path
---
 debian/patches/remove-hardcoded-paths.patch | 13 +++++++++++++
 debian/patches/series                       |  1 +
 2 files changed, 14 insertions(+)

diff --git a/debian/patches/remove-hardcoded-paths.patch b/debian/patches/remove-hardcoded-paths.patch
new file mode 100644
index 0000000..d5e3393
--- /dev/null
+++ b/debian/patches/remove-hardcoded-paths.patch
@@ -0,0 +1,13 @@
+Index: gitlab/lib/support/init.d/gitlab
+===================================================================
+--- gitlab.orig/lib/support/init.d/gitlab
++++ gitlab/lib/support/init.d/gitlab
+@@ -32,8 +32,6 @@ RAILS_ENV="production"
+ 
+ # Script variable names should be lower-case not to conflict with
+ # internal /bin/sh variables such as PATH, EDITOR or SHELL.
+-app_user="git"
+-app_root="/home/$app_user/gitlab"
+ pid_path="$app_root/tmp/pids"
+ socket_path="$app_root/tmp/sockets"
+ web_server_pid_path="$pid_path/unicorn.pid"
diff --git a/debian/patches/series b/debian/patches/series
index 810c04b..dcfaa5c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -27,3 +27,4 @@ loosen-rails-version.patch
 0107-relax-omniauth-facebook.patch
 0200-rails-4.2.patch
 source-init-functions.patch
+remove-hardcoded-paths.patch

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