extra774 - check correct date, consolidate files and fix report generation

(cherry picked from commit 75d66df94061d5cbc738384e74f0a3f42d0d6b37)
This commit is contained in:
Nimrod Kor
2020-03-22 11:00:02 +02:00
parent 530bacac5b
commit d62027440d
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ extra774(){
LIST_USERS_WITH_PASSWORD_ENABLED=$(cat $TEMP_REPORT_FILE|awk -F, '{ print $1,$4,$5 }' |grep true | awk '{ print $1 }')
for i in $LIST_USERS_WITH_PASSWORD_ENABLED; do
user=$(cat $TEMP_REPORT_FILE|awk -F, '{ print $1,$5 }' |grep "^$i " |awk '{ print $1 }')
user=$(cat $TEMP_REPORT_FILE|awk -F, '{ print $1,$3 }' |grep "^$i " |awk '{ print $1 }')
last_login_date=$(cat $TEMP_REPORT_FILE|awk -F, '{ print $1,$5 }' |grep "^$i " |awk '{ print $2 }')
days_not_in_use=$(how_many_days_from_today ${last_login_date%T*})

View File

@@ -260,7 +260,7 @@ execute_check() {
local check_id_var=CHECK_ID_$1
local check_id=${!check_id_var}
if [ ${check_id} ]; then
if [[ ${check_id} == 1* || ${check_id} == 7.1,7.01 ]];then
if [[ ${check_id} == 1* || ${check_id} == 7.1,7.01 || ${check_id} == 7.74 ]];then
if [ ! -s $TEMP_REPORT_FILE ];then
genCredReport
saveReport