summaryrefslogtreecommitdiff
path: root/rel/env.sh.eex
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-11-22 19:58:39 +0300
committerrinpatch <rinpatch@sdf.org>2019-12-13 21:16:45 +0300
commitb7370ab51363839f7c1f291b693e17ee9089662c (patch)
tree272ed8be83864e6751d86e1e8501c4ca0e6c756f /rel/env.sh.eex
parent2199d1500035d16b772f6a909f2a5afc52ae209b (diff)
downloadpleroma-b7370ab51363839f7c1f291b693e17ee9089662c.tar.gz
pleroma-b7370ab51363839f7c1f291b693e17ee9089662c.zip
OTP releases: only set name and distribution type if not set already
Fixes not being able to run two OTP releases on one machine because of the name conflict.
Diffstat (limited to 'rel/env.sh.eex')
-rw-r--r--rel/env.sh.eex4
1 files changed, 2 insertions, 2 deletions
diff --git a/rel/env.sh.eex b/rel/env.sh.eex
index a4ce25295..e1b87102d 100644
--- a/rel/env.sh.eex
+++ b/rel/env.sh.eex
@@ -8,5 +8,5 @@
# fi
# Set the release to work across nodes
-export RELEASE_DISTRIBUTION=name
-export RELEASE_NODE=<%= @release.name %>@127.0.0.1
+export RELEASE_DISTRIBUTION="${RELEASE_DISTRIBUTION:-name}"
+export RELEASE_NODE="${RELEASE_NODE:-<%= @release.name %>@127.0.0.1}"