From: rinpatch Date: Fri, 22 Nov 2019 16:58:39 +0000 (+0300) Subject: OTP releases: only set name and distribution type if not set already X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b7370ab51363839f7c1f291b693e17ee9089662c;p=akkoma 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. --- 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}"