Skip to content

Commit

Permalink
Update install.sh (#342)
Browse files Browse the repository at this point in the history
Adds logging.properties to all `/bin` scripts
  • Loading branch information
slmingol authored Jun 7, 2021
1 parent 5ba91fc commit f082b5b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,11 @@ 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
env OKTA_AWS_ROLE_TO_ASSUME="\$roleARN" \\
java \${PROXY_CONFIG} -classpath ${PREFIX}/okta-aws-cli.jar com.okta.tools.CredentialProcess
env OKTA_AWS_ROLE_TO_ASSUME="\$roleARN" \
java \${PROXY_CONFIG} \
-Djava.util.logging.config.file=${PREFIX}/logging.properties \
-classpath ${PREFIX}/okta-aws-cli.jar \
com.okta.tools.CredentialProcess
EOF
chmod +x "${PREFIX}/bin/okta-credential_process"

Expand All @@ -172,7 +175,10 @@ 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
java \${PROXY_CONFIG} -classpath ${PREFIX}/okta-aws-cli.jar com.okta.tools.ListRoles
java \${PROXY_CONFIG} \
-Djava.util.logging.config.file=${PREFIX}/logging.properties \
-classpath ${PREFIX}/okta-aws-cli.jar \
com.okta.tools.ListRoles
EOF
chmod +x "${PREFIX}/bin/okta-listroles"

Expand Down

0 comments on commit f082b5b

Please sign in to comment.