Skip to content

Instantly share code, notes, and snippets.

@ndavison
Created July 17, 2018 23:59
Show Gist options
  • Save ndavison/2bf9d269bc06ad8ae16a313bc3b9db1e to your computer and use it in GitHub Desktop.
Save ndavison/2bf9d269bc06ad8ae16a313bc3b9db1e to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# This updates the CF ups-dm-common app's env vars. You need to make sure
# the below JSON encoded object contains *all* the env vars, as this is a
# complete replacement.
#
cf update-user-provided-service ups-dm-common -p @<(cat <<EOF
{
"ENV_VAR_EXAMPLE_1": "xxx",
"ENV_VAR_EXAMPLE_2": "yyy"
}
EOF
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment