Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ "$key1dtSec" -lt "$taSec" ]; then
- 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"
- echo -e "$template1" | /usr/bin/mail --append="Content-type: text/html" -s "AWS Key Rotation Needed for $user_name in $aws_key" "$email_address"
- echo; echo
- fi
- if [ "$key2dtSec" -lt "$taSec" ]; then
- 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"
- echo -e "$template2" | /usr/bin/mail --append="Content-type: text/html" -s "AWS Key Rotation Needed for $user_name in $aws_key" "$email_address"
- echo; echo
- fi
Add Comment
Please, Sign In to add comment