#!/bin/bash # # Dependencies: # whitelist.txt is a csv of user emails # indicating who is able to access this component # e.g. "foo@bbc.co.uk,bar@bbc.co.uk,baz@bbc.co.uk" # # Example: # /bin/bash ./configuration.sh [cert_path] # # Description: # Updates a component's configuration via a REST API (BBC specific example script) cert=${1:-$DEV_CERT_PEM} endpoint=https://foo.bbc.co.uk/env/int/component/bar/configuration curl endpoint \ --cert $cert \ --header 'Content-Type: application/json' \ --request PUT \ --data-binary @- <