diff --git a/files/kcadm-wrapper.sh b/files/kcadm-wrapper.sh index 24c219f0..055502a5 100644 --- a/files/kcadm-wrapper.sh +++ b/files/kcadm-wrapper.sh @@ -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