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=4a5bb7eb021aa828fc24dfb7dbfdb1711e191daa;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}"