Files
scim-examples/docker/compose/generate-env.sh
2019-01-29 12:11:58 -05:00

8 lines
346 B
Bash
Executable File

#!/bin/bash
# this script generates a file called `scim.env` using the contents of a scimsession file in the PWD.
# This env file is used to populate the scimsession env var in the container to prevent copying the sensitive file into a container layer.
SESSION=$(cat scimsession | base64 | tr -d "\n")
echo "OPSCIM_SESSION=$SESSION" > scim.env