aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ansible/roles/postfix/templates/services/fredrick-reply.sh.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2 b/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2
index 609d37f..90ebe04 100644
--- a/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2
+++ b/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2
@@ -107,7 +107,8 @@ case $RECIPIENT in
at -q z -f "$ATSCRIPT" now + 1 min
;;
*)
- at -q z -f "$ATSCRIPT" now + 20 min
+ reply_delay=$(awk 'BEGIN { srand(); print (rand() * 100) + 20 }')
+ at -q z -f "$ATSCRIPT" now + "$reply_delay" min
;;
esac
rm "$ATSCRIPT"