use simpler export command

This commit is contained in:
Praveen Arimbrathodiyil 2016-02-12 17:24:13 +05:30
parent 78cc74f3c5
commit 651f4d51d5
2 changed files with 2 additions and 2 deletions

2
debian/conf/gitlab vendored
View file

@ -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".

View file

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