Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2013-12-09 12:29:18 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2013-12-09 12:29:18 +0400
commit31cdb7a405e5a3683b12a2ac7b4f195444552a96 (patch)
tree39cd8d73245ddf278e1bf0cffcb9f99473e546f1 /lib/support
parentabf11135c228790f212beb5e1ff716f9ebd33ebd (diff)
parent5c98cae9fe5e4d90c520277f6415d51d3bc405f8 (diff)
Merge pull request #5471 from dex4er/feature_etc_default_gitlab
Read configuration variable file (/etc/default/gitlab) if it is present
Diffstat (limited to 'lib/support')
-rwxr-xr-xlib/support/init.d/gitlab2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/support/init.d/gitlab b/lib/support/init.d/gitlab
index fbb7380ac47..9cf3aa5fe85 100755
--- a/lib/support/init.d/gitlab
+++ b/lib/support/init.d/gitlab
@@ -31,6 +31,8 @@ sidekiq_pid_path="$pid_path/sidekiq.pid"
### Here ends user configuration ###
+# Read configuration variable file if it is present
+test -f /etc/default/gitlab && . /etc/default/gitlab
# Switch to the app_user if it is not he/she who is running the script.
if [ "$USER" != "$app_user" ]; then