SDP-455

robert_cowham (Robert Cowham)
Robert Cowham created this job , modified by C. Thomas Tyler
Closed
Add license expiration check to verify_sdp.sh.

Display a warning if no license exists.
Display an error Support on license is expired.
Display whether license is perpetual/subscription.
Display a warning if license expiration is coming up soon
(e.g. 14 days).
26386Added license expiration check.

Added new 'warning' indicator, so some things may be reported as warnings
rather than errors.

Fixed bug in not-released dev version handling su/exec when started
as root.

Enhanced verify_sdp.sh to support being called by other scripts by
giving a reliable exit code.  Errors detected result in a non-zero
exit code; warnings do not.  This is in support of SDP-444, but does
not complete that job.

Maintained shellcheck compliance.
26278verify_sdp.sh v5.4.0:
* Handles running as root instead of OSUSER.
* Added Warnings (as opposed to only Errors).
* Accounted for more checks already being run.
* Added checks license:
  - Indicates if license is perpetual
  - Warns if no license
  - Error if license expired, or expires within 14 days
* Changed shellcheck strategy for handling sourced files, replacing
  'source' directives with 'disable' directives for SC1090/1091
  (related to shellchecking sourced files).  Having 'source'
  directives that refer to the 'as deployed' structure (i.e. to
  paths under /p4/common) works best when shellchecking on a live
  system, but makes shellcheking in a development workspace harder.
26385Added license expiration check.

Added new 'warning' indicator, so some things may be reported as warnings
rather than errors.

Fixed bug in not-released dev version handling su/exec when started
as root.

Enhanced verify_sdp.sh to support being called by other scripts by
giving a reliable exit code.  Errors detected result in a non-zero
exit code; warnings do not.  This is in support of SDP-444, but does
not complete that job.

Maintained shellcheck compliance.

#review-26386
  • Details
  • Comments -
Status
Closed
Project
perforce-software-sdp
Severity
C
Reported By
Robert Cowham
Reported Date
Modified By
C. Thomas Tyler
Modified Date
Owned By
tom_tyler
Component
core-unix
Type
Feature