From 4632cbfd5278a8a0a4f8f74f44babcf6cb6caa4a Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 2 Aug 2021 15:27:02 -0500 Subject: [PATCH] AWS-DDNS added logging on run --- AWS/DDNS.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AWS/DDNS.bash b/AWS/DDNS.bash index cbd4208..fd89f18 100755 --- a/AWS/DDNS.bash +++ b/AWS/DDNS.bash @@ -32,3 +32,8 @@ result="$(aws route53 change-resource-record-sets --hosted-zone-id "${HOSTED_ZON echo \ "Current Record Status: $(jq '.ChangeInfo.Status' <(echo "${result}"))" + +current_time="$(date +%Y-%m-%dT%H:%M:%S)" +cat << EOF >> DDNS_Updates.log +DDNS Update made @ ${current_time} +EOF \ No newline at end of file