diff options
author | rinpatch <rinpatch@sdf.org> | 2019-11-22 19:58:39 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-12-13 21:16:45 +0300 |
commit | b7370ab51363839f7c1f291b693e17ee9089662c (patch) | |
tree | 272ed8be83864e6751d86e1e8501c4ca0e6c756f | |
parent | 2199d1500035d16b772f6a909f2a5afc52ae209b (diff) | |
download | pleroma-b7370ab51363839f7c1f291b693e17ee9089662c.tar.gz |
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.
-rw-r--r-- | rel/env.sh.eex | 4 |
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}" |