fix nits
This commit is contained in:
parent
0921d23dec
commit
dd886215e7
@ -72,7 +72,7 @@ function currentProfile () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Set env vars to make using CNS easier
|
# Set env vars to make using CNS easier
|
||||||
function CnsEnvVars () {
|
function cnsEnvVars () {
|
||||||
|
|
||||||
# If the CNS env vars are already set, don't bother continuing
|
# If the CNS env vars are already set, don't bother continuing
|
||||||
if [ -n "$TRITON_CNS_SEARCH_DOMAIN_PUBLIC" ] && [ -n "$TRITON_CNS_SEARCH_DOMAIN_PRIVATE" ]
|
if [ -n "$TRITON_CNS_SEARCH_DOMAIN_PUBLIC" ] && [ -n "$TRITON_CNS_SEARCH_DOMAIN_PRIVATE" ]
|
||||||
@ -85,7 +85,7 @@ function CnsEnvVars () {
|
|||||||
local triton_url="$(triton profile get | awk -F"/" '/url:/{print $3}')"
|
local triton_url="$(triton profile get | awk -F"/" '/url:/{print $3}')"
|
||||||
|
|
||||||
# Do not continue if the target is not a Triton Public Cloud data center
|
# Do not continue if the target is not a Triton Public Cloud data center
|
||||||
if [ ! "api.joyent.com" == "$(echo "${triton_url}" | awk -F'.' '{print $2 "." $3 "." $4}')" ]
|
if [ ! ".api.joyent.com" == "${triton_url: -15}" ]
|
||||||
then
|
then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
@ -137,14 +137,14 @@ case "$(basename $0)" in
|
|||||||
triton-docker)
|
triton-docker)
|
||||||
checkAll &&
|
checkAll &&
|
||||||
eval "$(triton env)" &&
|
eval "$(triton env)" &&
|
||||||
CnsEnvVars &&
|
cnsEnvVars &&
|
||||||
exec /usr/local/bin/triton-docker-helper $@
|
exec /usr/local/bin/triton-docker-helper $@
|
||||||
;;
|
;;
|
||||||
triton-compose)
|
triton-compose)
|
||||||
checkAll &&
|
checkAll &&
|
||||||
eval "$(triton env)" &&
|
eval "$(triton env)" &&
|
||||||
export COMPOSE_HTTP_TIMEOUT=750 &&
|
export COMPOSE_HTTP_TIMEOUT=750 &&
|
||||||
CnsEnvVars &&
|
cnsEnvVars &&
|
||||||
exec /usr/local/bin/triton-compose-helper $@
|
exec /usr/local/bin/triton-compose-helper $@
|
||||||
;;
|
;;
|
||||||
triton-docker-install)
|
triton-docker-install)
|
||||||
|
Loading…
Reference in New Issue
Block a user