This file is indexed.

/etc/one-context.d/06-gen-env is in opennebula-context 4.14.0-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

ENV_FILE="/tmp/one_env"

TOKENTXT=$(cat /mnt/token.txt)
echo "export TOKENTXT=\"$TOKENTXT\"" > $ENV_FILE

function export_rc_vars
{
  if [ -f $1 ] ; then
    ONE_VARS=$(cat $1 | egrep -e '^[a-zA-Z\-\_0-9]*=' | sed 's/=.*$//')

    . $1

    for v in $ONE_VARS; do
        echo "export $v=\"${!v}\"" >> $ENV_FILE
    done
  fi
}

export_rc_vars /mnt/context.sh

chown root:root $ENV_FILE
chmod a+r $ENV_FILE