Guest User

Untitled

a guest
Jul 16th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. if [ "$key1dtSec" -lt "$taSec" ]; then
  2. printf "%s created on %s\nThis key is %s days old and needs to be replaced.\nAn email will be sent." "$user_access_key1" "$key1_date_created." "$key1AgeDays"
  3. echo -e "$template1" | /usr/bin/mail --append="Content-type: text/html" -s "AWS Key Rotation Needed for $user_name in $aws_key" "$email_address"
  4. echo; echo
  5. fi
  6.  
  7. if [ "$key2dtSec" -lt "$taSec" ]; then
  8. printf "%s created on %s.\nThis key is %s days old and needs to be replaced.\nAn email will be sent." "$user_access_key2" "$key2_date_created" "$key2AgeDays"
  9. echo -e "$template2" | /usr/bin/mail --append="Content-type: text/html" -s "AWS Key Rotation Needed for $user_name in $aws_key" "$email_address"
  10. echo; echo
  11. fi
Add Comment
Please, Sign In to add comment