Skip to content

Commit

Permalink
Fix conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Nov 18, 2024
1 parent e7e2a3b commit f291300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/kcadm-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
EXPIRES=$(/usr/bin/sed -n -r 's|.*"refreshExpiresAt" : ([0-9]*).*|\1|p' "$CONFIG" || echo "0")
NOW=$(/usr/bin/date +%s%3N)

if [ ! -f "$CONFIG" ] || [ "$EXPIRES" -gt "$NOW" ]; then
if [ ! -f "$CONFIG" ] || [ "$EXPIRES" -lt "$NOW" ]; then
${KCADM} config credentials --config "$CONFIG" --server "$SERVER" --realm "$REALM" --user "$ADMIN_USER" --password "$PASSWORD"
fi

Expand Down

0 comments on commit f291300

Please sign in to comment.