blob: c780fd53a0458274ecb242e027c985d4c89b6d90 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash
if [ -n "$https_proxy" ]; then
readonly URI_REGEX='^(([^:/?#]+):)?(//((([^:/?#]+)@)?([^:/?#]+)(:([0-9]+))?))?(/([^?#]*))(\?([^#]*))?(#(.*))?'
[[ $https_proxy =~ ${URI_REGEX} ]] && PROXY_CONFIG="-Dhttps.proxyHost=${BASH_REMATCH[7]} -Dhttps.proxyPort=${BASH_REMATCH[9]}"
fi
/usr/lib/jvm/java-11-openjdk/bin/java ${PROXY_CONFIG} \
-Djava.util.logging.config.file=/usr/share/java/okta-aws-cli/logging.properties \
-classpath /usr/share/java/okta-aws-cli/okta-aws-cli.jar \
com.okta.tools.WithOkta "$@"
|