Skip to content

Commit

Permalink
fix(STIC-619): properly handle EL9 password minlen option
Browse files Browse the repository at this point in the history
  • Loading branch information
iranzo committed Nov 10, 2022
1 parent e1ed5bf commit 1986369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions risuclient/plugins/core/CCN-STIC-619/logindefs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ is_mandatory_file ${FILEDEFS}

OS=$(discover_os)

if [[ $OS == "debian" ]] || [[ $OS == "fedora" ]]; then
if [[ $OS == "debian" ]]; then
RH_RELEASE=8
else
RH_RELEASE=$(discover_rhrelease)
Expand Down Expand Up @@ -63,7 +63,7 @@ PASS_MIN_DAYS=$(egrep ^PASS_MIN_DAYS ${FILEDEFS} | awk '{print $2}')
PASS_WARN_AGE=$(egrep ^PASS_WARN_AGE ${FILEDEFS} | awk '{print $2}')

if [[ ${RH_RELEASE} -gt 8 ]]; then
PASS_MIN_LEN=$(egrep ^minlen ${FILEQUAL} | awk '{print $2}')
PASS_MIN_LEN=$(egrep ^minlen ${FILEQUAL} |cut -d "=" -f 2- | xargs echo)
else
PASS_MIN_LEN=$(egrep ^PASS_MIN_LEN ${FILEDEFS} | awk '{print $2}')
fi
Expand Down

0 comments on commit 1986369

Please sign in to comment.