From 044c2dd2ea3531835386010c8743d02ab0058491 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Wed, 9 Oct 2013 01:05:37 +0530 Subject: [PATCH] start: added GITLAB_EMAIL env variable to specify the email address from the git user --- resources/start | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/start b/resources/start index bb303e4e..a499caac 100755 --- a/resources/start +++ b/resources/start @@ -1,6 +1,7 @@ #!/bin/bash GITLAB_HOST=${GITLAB_HOST:-localhost} +GITLAB_EMAIL=${GITLAB_EMAIL:-gitlab@localhost} DB_HOST=${DB_HOST:-localhost} DB_NAME=${DB_NAME:-gitlabhq_production} @@ -25,11 +26,12 @@ sleep 3 # configure git for the 'git' user sudo -u git -H git config --global user.name "GitLab" -sudo -u git -H git config --global user.email "gitlab@localhost" +sudo -u git -H git config --global user.email "${GITLAB_EMAIL}" sudo -u git -H git config --global core.autocrlf input # configure server url sudo -u git -H sed 's/host: localhost/host: '${GITLAB_HOST}'/' -i /home/git/gitlab/config/gitlab.yml +sudo -u git -H sed 's/email_from: gitlab@localhost/email_from: '${GITLAB_EMAIL}'/' -i /home/git/gitlab/config/gitlab.yml # configure database sudo -u git -H sed 's/{{DB_HOST}}/'${DB_HOST}'/' -i /home/git/gitlab/config/database.yml