[DRE-commits] [gitlab] 01/01: change gitlab_home to gitlab_app_root
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Thu Feb 18 09:13:59 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 3ba2b5b56c30cb74ca20742159871246f410b44f
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Thu Feb 18 14:31:41 2016 +0530
change gitlab_home to gitlab_app_root
---
debian/conf/gitlab | 4 ++--
debian/conf/gitlab-debian.conf | 2 +-
debian/conf/gitlab-workhorse.service | 2 +-
debian/conf/unicorn.rb | 2 +-
debian/postinst | 6 +++---
debian/rake-tasks.sh | 4 ++--
6 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/debian/conf/gitlab b/debian/conf/gitlab
index 6cc2d33..57bf8aa 100755
--- a/debian/conf/gitlab
+++ b/debian/conf/gitlab
@@ -9,7 +9,7 @@ RAILS_ENV="production"
# Read and export debian specific configuration
# Only exported variables will be passed on to gitlab app
-export $(cat /etc/gitlab/gitlab-debian.conf|xargs)
+export $(cat /etc/gitlab/gitlab-debian.conf)
# app_user defines the user that GitLab is run as.
# The default is "git".
@@ -17,7 +17,7 @@ app_user=${gitlab_user}
# app_root defines the folder in which gitlab and it's components are installed.
# The default is "/home/$app_user/gitlab"
-app_root=${gitlab_home}
+app_root=${gitlab_app_root}
# gitlab_log_dir is defined in /etc/gitlab/gitlab-debian.conf
diff --git a/debian/conf/gitlab-debian.conf b/debian/conf/gitlab-debian.conf
index c75e89c..c42be34 100644
--- a/debian/conf/gitlab-debian.conf
+++ b/debian/conf/gitlab-debian.conf
@@ -2,7 +2,7 @@ RAILS_ENV=production
DB=postgres
gitlab_user=gitlab
gitlab_conf=/etc/gitlab.conf
-gitlab_home=/usr/share/gitlab
+gitlab_app_root=/usr/share/gitlab
gitlab_data_dir=/var/lib/gitlab
gitlab_scripts=/usr/lib/gitlab/scripts
gitlab_nginx_log=/var/log/gitlab
diff --git a/debian/conf/gitlab-workhorse.service b/debian/conf/gitlab-workhorse.service
index c297c5f..bdb3e0d 100644
--- a/debian/conf/gitlab-workhorse.service
+++ b/debian/conf/gitlab-workhorse.service
@@ -21,7 +21,7 @@ EnvironmentFile=/etc/gitlab/gitlab-debian.conf
SyslogIdentifier=gitlab-workhorse
PIDFile=/run/gitlab/gitlab-workhorse.pid
-ExecStart=/usr/share/gitlab/bin/daemon_with_pidfile ${gitlab_pid_path}/gitlab-workhorse.pid gitlab-workhorse -listenUmask 0 -listenNetwork unix -listenAddr ${gitlab_pid_path}/gitlab-workhorse.socket -authBackend http://127.0.0.1:8080 -authSocket ${gitlab_pid_path}/gitlab.socket -documentRoot ${gitlab_home}/public >> ${gitlab_log_dir}/gitlab-workhorse.log 2>&1
+ExecStart=/usr/share/gitlab/bin/daemon_with_pidfile ${gitlab_pid_path}/gitlab-workhorse.pid gitlab-workhorse -listenUmask 0 -listenNetwork unix -listenAddr ${gitlab_pid_path}/gitlab-workhorse.socket -authBackend http://127.0.0.1:8080 -authSocket ${gitlab_pid_path}/gitlab.socket -documentRoot ${gitlab_app_root}/public >> ${gitlab_log_dir}/gitlab-workhorse.log 2>&1
[Install]
WantedBy=multi-user.target
diff --git a/debian/conf/unicorn.rb b/debian/conf/unicorn.rb
index 879df7e..bbf1fa2 100644
--- a/debian/conf/unicorn.rb
+++ b/debian/conf/unicorn.rb
@@ -30,7 +30,7 @@ worker_processes 3
# Help ensure your application will always spawn in the symlinked
# "current" directory that Capistrano sets up.
-working_directory ENV['gitlab_home'] # available in 0.94.0+
+working_directory ENV['gitlab_app_root'] # available in 0.94.0+
# Listen on both a Unix domain socket and a TCP port.
# If you are load-balancing multiple Unicorn masters, lower the backlog
diff --git a/debian/postinst b/debian/postinst
index e1fc73e..6cbe8c1 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -53,15 +53,15 @@ case "$1" in
chmod -R ug+rwX,o-rwx ${gitlab_repo_path}/
chmod -R ug-s ${gitlab_repo_path}/
find ${gitlab_repo_path}/ -type d -print0 | xargs -0 chmod g+s
- for i in ${gitlab_home} ${gitlab_data_dir} ${gitlab_shell_root}; do
+ for i in ${gitlab_app_root} ${gitlab_data_dir} ${gitlab_shell_root}; do
chown -R ${gitlab_user}: $i
done
su ${gitlab_user} -s /bin/sh -c "chmod 750 ${gitlab_uploads_path}"
su ${gitlab_user} -s /bin/sh -c 'git config --global core.autocrlf "input"'
- # Commands below needs to be run from gitlab_home
- cd ${gitlab_home}
+ # Commands below needs to be run from gitlab_app_root
+ cd ${gitlab_app_root}
# Obtain hostname from debconf db
db_get gitlab/fqdn
diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh
index e08baa1..8f42165 100755
--- a/debian/rake-tasks.sh
+++ b/debian/rake-tasks.sh
@@ -28,8 +28,8 @@ fi
# Workaround for #813770
if [ "${GITLAB_HTTPS}" = "true" ]; then
gl_proto="https"
- sed -i "s/#port: 80/port: 443/" ${gitlab_home}/config/gitlab.yml
- sed -i "s/https: false/https: true/" ${gitlab_home}/config/gitlab.yml
+ sed -i "s/#port: 80/port: 443/" ${gitlab_app_root}/config/gitlab.yml
+ sed -i "s/https: false/https: true/" ${gitlab_app_root}/config/gitlab.yml
else
gl_proto="http"
fi
--
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