diff options
author | badlop <badlop@process-one.net> | 2015-09-24 20:26:03 +0300 |
---|---|---|
committer | badlop <badlop@process-one.net> | 2015-09-24 20:26:03 +0300 |
commit | 825f4fcc3515d66478873a178ee4bf932da017fb (patch) | |
tree | 39d52c803b68fbd3fa7a963e7da719cb65ed2f1e /tools | |
parent | ee456cc2afaa223f5086c54a17fdbcb3e90aaf8d (diff) | |
parent | 1f4d8fd4d77a1f6042d768339d5f141357c8edfb (diff) |
Merge pull request #748 from joudinet/bashisms
Remove bashisms in {join,leave}cluster scripts
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/joincluster | 6 | ||||
-rwxr-xr-x | tools/leavecluster | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/joincluster b/tools/joincluster index ff2e0380f..837962236 100755 --- a/tools/joincluster +++ b/tools/joincluster @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # Add the current ejabberd node in a cluster @@ -15,7 +15,7 @@ # 30 : network issue # 31 : node names incompatibility -function error +error() { echo "Error: $1" >&2 exit $2 @@ -67,7 +67,7 @@ CTL=$(which ejabberdctl) echo "Using commands:" [ -x "$CTL" ] && echo $CTL || error "can't find ejabberdctl" 10 -. $CTL stop 2>/dev/null >/dev/null +$CTL stop 2>/dev/null >/dev/null ERLC=${ERL}c [ -x $ERL ] && echo $ERL || error "can't find erl" 11 diff --git a/tools/leavecluster b/tools/leavecluster index b2dfea0c7..feacdce2d 100755 --- a/tools/leavecluster +++ b/tools/leavecluster @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # Remove the current ejabberd node in a cluster @@ -11,7 +11,7 @@ # 12 : erlc not found # 22 : temporary dir can not be created -function error +error() { echo "Error: $1" >&2 exit $2 @@ -45,7 +45,7 @@ CTL=$(which ejabberdctl) echo "Using commands:" [ -x "$CTL" ] && echo $CTL || error "can't find ejabberdctl" 10 -. $CTL stop 2>/dev/null >/dev/null +$CTL stop 2>/dev/null >/dev/null ERLC=${ERL}c [ -x $ERL ] && echo $ERL || error "can't find erl" 11 |