Skip to content

Commit

Permalink
Fix problem with DAM license file processing
Browse files Browse the repository at this point in the history
  • Loading branch information
rcowham committed Jun 7, 2023
1 parent d33a500 commit 8951a8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/monitor_metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ monitor_license () {
if [[ $no_license -ne 1 ]]; then
userCount=$(grep userCount $tmp_license_data | awk '{print $3}')
userLimit=$(grep userLimit $tmp_license_data | awk '{print $3}')
licenseExpires=$(grep licenseExpires $tmp_license_data | awk '{print $3}')
licenseTimeRemaining=$(grep licenseTimeRemaining $tmp_license_data | awk '{print $3}')
supportExpires=$(grep supportExpires $tmp_license_data | awk '{print $3}')
licenseExpires=$(grep "\.\.\. licenseExpires" $tmp_license_data | awk '{print $3}')
licenseTimeRemaining=$(grep "\.\.\. licenseTimeRemaining" $tmp_license_data | awk '{print $3}')
supportExpires=$(grep "\.\.\. supportExpires" $tmp_license_data | awk '{print $3}')
licenseInfo=$(grep "Server license: " "$tmp_info_data" | sed -e "s/Server license: //" | sed -Ee "s/\(expires [^\)]+\)//" | sed -Ee "s/\(support [^\)]+\)//" )
if [[ -z $licenseTimeRemaining && ! -z $supportExpires ]]; then
dt=$(date +%s)
Expand Down

0 comments on commit 8951a8a

Please sign in to comment.