diff options
Diffstat (limited to 'ci/docker/replaceexpiry.sh')
| -rw-r--r-- | ci/docker/replaceexpiry.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ci/docker/replaceexpiry.sh b/ci/docker/replaceexpiry.sh new file mode 100644 index 0000000..b029863 --- /dev/null +++ b/ci/docker/replaceexpiry.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# If no custom expiry set, do nothing +[ -z "${OAUTH_EXPIRED_TTL}" ] && exit + +# Replace oauth expiry +sed -i "s/return \[/return \[\n'Api' => [\n'tokenExpiry' => 'PT${OAUTH_EXPIRED_TTL}S',\n],/g" "$1" |
