Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vernemq
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stack
vernemq
Commits
e5f9cf54
Commit
e5f9cf54
authored
Aug 18, 2022
by
Chavee Issariyapat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
also write node name to vernemq.conf
parent
48398c11
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
bin/vernemq.sh
+2
-1
No files found.
bin/vernemq.sh
View file @
e5f9cf54
...
@@ -12,8 +12,10 @@ chmod 755 /var/lib/vernemq /var/log/vernemq
...
@@ -12,8 +12,10 @@ chmod 755 /var/lib/vernemq /var/log/vernemq
# Ensure the Erlang node name is set correctly
# Ensure the Erlang node name is set correctly
if
env |
grep
-q
"DOCKER_VERNEMQ_NODENAME"
;
then
if
env |
grep
-q
"DOCKER_VERNEMQ_NODENAME"
;
then
sed
-i
.bak
-r
"s/VerneMQ@.+/VerneMQ@
${
DOCKER_VERNEMQ_NODENAME
}
/"
/etc/vernemq/vm.args
sed
-i
.bak
-r
"s/VerneMQ@.+/VerneMQ@
${
DOCKER_VERNEMQ_NODENAME
}
/"
/etc/vernemq/vm.args
echo
"nodename = VerneMQ@
${
DOCKER_VERNEMQ_NODENAME
}
"
>>
/etc/vernemq/vernemq.conf
else
else
sed
-i
.bak
-r
"s/VerneMQ@.+/VerneMQ@
${
IP_ADDRESS
}
/"
/etc/vernemq/vm.args
sed
-i
.bak
-r
"s/VerneMQ@.+/VerneMQ@
${
IP_ADDRESS
}
/"
/etc/vernemq/vm.args
echo
"nodename = VerneMQ@
${
IP_ADDRESS
}
"
>>
/etc/vernemq/vernemq.conf
fi
fi
if
env |
grep
-q
"DOCKER_VERNEMQ_DISCOVERY_NODE"
;
then
if
env |
grep
-q
"DOCKER_VERNEMQ_DISCOVERY_NODE"
;
then
...
@@ -98,7 +100,6 @@ EOF
...
@@ -98,7 +100,6 @@ EOF
#echo "vmq_webhooks.webhook8.endpoint = ${VERNEMQ_WEBHOOK_HOST}/onpub" >> /etc/vernemq/vernemq.conf
#echo "vmq_webhooks.webhook8.endpoint = ${VERNEMQ_WEBHOOK_HOST}/onpub" >> /etc/vernemq/vernemq.conf
fi
fi
echo
"########## End ##########"
>>
/etc/vernemq/vernemq.conf
echo
"########## End ##########"
>>
/etc/vernemq/vernemq.conf
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment