diff options
author | rinpatch <rinpatch@sdf.org> | 2019-11-22 19:58:39 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-11-22 19:58:39 +0300 |
commit | 4a5bb7eb021aa828fc24dfb7dbfdb1711e191daa (patch) | |
tree | 73c030f95c5324d86245cca3ef76114a340f4bd3 | |
parent | bd6294602036fae92a129f0a048455fb717fba73 (diff) | |
download | pleroma-4a5bb7eb021aa828fc24dfb7dbfdb1711e191daa.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}" |