From e13004a1e8c879503346ade6aa28b247139a73a3 Mon Sep 17 00:00:00 2001 From: Praveen Arimbrathodiyil Date: Thu, 17 Dec 2015 16:44:50 +0530 Subject: [PATCH] fix hardcoded path --- debian/patches/remove-hardcoded-paths.patch | 13 +++++++++++++ debian/patches/series | 1 + 2 files changed, 14 insertions(+) create mode 100644 debian/patches/remove-hardcoded-paths.patch diff --git a/debian/patches/remove-hardcoded-paths.patch b/debian/patches/remove-hardcoded-paths.patch new file mode 100644 index 0000000000..d5e339384a --- /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 810c04b2bc..dcfaa5cf1f 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