gh-22: add support for token in vcenter context

pull/23/head
Javi Fontan 9 years ago
parent f553d64e89
commit 5374849fc2

@ -3,6 +3,11 @@
ENV_FILE="/tmp/one_env" ENV_FILE="/tmp/one_env"
TOKENTXT=$(cat /mnt/token.txt) TOKENTXT=$(cat /mnt/token.txt)
if [ -n "$ONEGATE_TOKEN" ]; then
TOKENTXT="$ONEGATE_TOKEN"
fi
echo "export TOKENTXT=\"$TOKENTXT\"" > $ENV_FILE echo "export TOKENTXT=\"$TOKENTXT\"" > $ENV_FILE
function export_rc_vars function export_rc_vars

Loading…
Cancel
Save