|
|
@ -8,6 +8,7 @@ if [ -n "$ONEGATE_TOKEN" ]; then
|
|
|
|
TOKENTXT="$ONEGATE_TOKEN"
|
|
|
|
TOKENTXT="$ONEGATE_TOKEN"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
umask 0377
|
|
|
|
echo "export TOKENTXT=\"$TOKENTXT\"" > $ENV_FILE
|
|
|
|
echo "export TOKENTXT=\"$TOKENTXT\"" > $ENV_FILE
|
|
|
|
echo "export VMID=\"$VMID\"" >> $ENV_FILE
|
|
|
|
echo "export VMID=\"$VMID\"" >> $ENV_FILE
|
|
|
|
echo "export ONEGATE_ENDPOINT=\"$ONEGATE_ENDPOINT\"" >> $ENV_FILE
|
|
|
|
echo "export ONEGATE_ENDPOINT=\"$ONEGATE_ENDPOINT\"" >> $ENV_FILE
|
|
|
@ -28,5 +29,5 @@ function export_rc_vars
|
|
|
|
export_rc_vars ${CONTEXT_FILE}
|
|
|
|
export_rc_vars ${CONTEXT_FILE}
|
|
|
|
|
|
|
|
|
|
|
|
chown root:root $ENV_FILE
|
|
|
|
chown root:root $ENV_FILE
|
|
|
|
chmod a+r $ENV_FILE
|
|
|
|
chmod 0400 $ENV_FILE
|
|
|
|
|
|
|
|
|
|
|
|