cat <<"EOF" >/etc/profile.d/beaker.sh
export BEAKER="{{ absolute_url('/', labdomain=True) }}"
{% if config.get('beaker.reservation_policy_url') %}
export BEAKER_RESERVATION_POLICY_URL="{{ config.get('beaker.reservation_policy_url') }}"
{% endif %}
export BEAKER_JOB_WHITEBOARD={{ job_whiteboard|shell_quoted }}
export BEAKER_RECIPE_WHITEBOARD={{ recipe_whiteboard|shell_quoted }}
EOF
cat <<"EOF" >/etc/profile.d/beaker.csh
setenv BEAKER "{{ absolute_url('/', labdomain=True) }}"
{% if config.get('beaker.reservation_policy_url') %}
setenv BEAKER_RESERVATION_POLICY_URL "{{ config.get('beaker.reservation_policy_url') }}"
{% endif %}
setenv BEAKER_JOB_WHITEBOARD {{ job_whiteboard|shell_quoted }}
setenv BEAKER_RECIPE_WHITEBOARD {{ recipe_whiteboard|shell_quoted }}
EOF
