Skip to content

Commit f082b5b

Browse files
authored
Update install.sh (#342)
Adds logging.properties to all `/bin` scripts
1 parent 5ba91fc commit f082b5b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

bin/install.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,11 @@ if [ -n "\$https_proxy" ]; then
160160
readonly URI_REGEX='^(([^:/?#]+):)?(//((([^:/?#]+)@)?([^:/?#]+)(:([0-9]+))?))?(/([^?#]*))(\?([^#]*))?(#(.*))?'
161161
[[ \$https_proxy =~ \${URI_REGEX} ]] && PROXY_CONFIG="-Dhttps.proxyHost=\${BASH_REMATCH[7]} -Dhttps.proxyPort=\${BASH_REMATCH[9]}"
162162
fi
163-
env OKTA_AWS_ROLE_TO_ASSUME="\$roleARN" \\
164-
java \${PROXY_CONFIG} -classpath ${PREFIX}/okta-aws-cli.jar com.okta.tools.CredentialProcess
163+
env OKTA_AWS_ROLE_TO_ASSUME="\$roleARN" \
164+
java \${PROXY_CONFIG} \
165+
-Djava.util.logging.config.file=${PREFIX}/logging.properties \
166+
-classpath ${PREFIX}/okta-aws-cli.jar \
167+
com.okta.tools.CredentialProcess
165168
EOF
166169
chmod +x "${PREFIX}/bin/okta-credential_process"
167170

@@ -172,7 +175,10 @@ if [ -n "\$https_proxy" ]; then
172175
readonly URI_REGEX='^(([^:/?#]+):)?(//((([^:/?#]+)@)?([^:/?#]+)(:([0-9]+))?))?(/([^?#]*))(\?([^#]*))?(#(.*))?'
173176
[[ \$https_proxy =~ \${URI_REGEX} ]] && PROXY_CONFIG="-Dhttps.proxyHost=\${BASH_REMATCH[7]} -Dhttps.proxyPort=\${BASH_REMATCH[9]}"
174177
fi
175-
java \${PROXY_CONFIG} -classpath ${PREFIX}/okta-aws-cli.jar com.okta.tools.ListRoles
178+
java \${PROXY_CONFIG} \
179+
-Djava.util.logging.config.file=${PREFIX}/logging.properties \
180+
-classpath ${PREFIX}/okta-aws-cli.jar \
181+
com.okta.tools.ListRoles
176182
EOF
177183
chmod +x "${PREFIX}/bin/okta-listroles"
178184

0 commit comments

Comments
 (0)