[DRE-commits] [gitlab] 02/04: use simpler export command

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Feb 12 12:10: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 651f4d51d5eee40b83b13afc1879a7563a1a93f0
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Fri Feb 12 17:24:13 2016 +0530

    use simpler export command
---
 debian/conf/gitlab   | 2 +-
 debian/rake-tasks.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/conf/gitlab b/debian/conf/gitlab
index d2511e6..57ccaf6 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
-for i in $(cat /etc/gitlab/gitlab-debian.conf); do export $i; done
+export $(cat /etc/gitlab/gitlab-debian.conf|xargs)
 
 # app_user defines the user that GitLab is run as.
 # The default is "git".
diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh
index 8a65fe2..968652c 100755
--- a/debian/rake-tasks.sh
+++ b/debian/rake-tasks.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 # Read and export debian specific configuration
 # Only exported variables will be passed on to gitlab app
-for i in $(cat /etc/gitlab/gitlab-debian.conf); do export $i; done
+export $(cat /etc/gitlab/gitlab-debian.conf|xargs)
 
 echo "Initializing database..."
 su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:setup RAILS_ENV=production'

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