Last active
February 9, 2017 20:59
-
-
Save dvliman/9a98215bd2a8e16fbafbef6a86f8034c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dliman@qa-roles-i-40f58a56:~$ cat /usr/local/bin/roles | |
#!/bin/bash | |
# Shell connect | |
set -e | |
NAME=`uuidgen | sed -e 's/-//g'` | |
COOKIE=`grep cookie /opt/roles/etc/vm.args| cut -d' ' -f2` | |
CLUSTER_NAME=`grep name /opt/roles/etc/vm.args | awk '{print $2}'` | |
cd /opt/roles/erts-*/bin | |
./erl -hidden -name $NAME -remsh $CLUSTER_NAME -setcookie $COOKIE -pa deps/*/ebin ebin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cluster name: [email protected]