fix docker_start without using jq (#1855)
* fix docker_start without using jq
This commit is contained in:
parent
f860a037b5
commit
59fc403e32
|
@ -133,7 +133,7 @@ if [ "$DISABLE_POSTOVERFLOWS" != "" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function register_bouncer {
|
function register_bouncer {
|
||||||
if ! cscli -c "$CS_CONFIG_FILE" bouncers list -o json | jq -r .[].name | grep -q "${NAME}"; then
|
if ! cscli -c "$CS_CONFIG_FILE" bouncers list -o json | sed '/^ *"name"/!d;s/^ *"name": "\(.*\)",/\1/' | grep -q "^${NAME}$"; then
|
||||||
if cscli -c "$CS_CONFIG_FILE" bouncers add "${NAME}" -k "${KEY}" > /dev/null; then
|
if cscli -c "$CS_CONFIG_FILE" bouncers add "${NAME}" -k "${KEY}" > /dev/null; then
|
||||||
echo "Registered bouncer for ${NAME}"
|
echo "Registered bouncer for ${NAME}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue