Skip to content

Commit 0783561

Browse files
committed
Make Fredrick go for walks before replying to some e-mails
1 parent 6d1a9a8 commit 0783561

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ansible/roles/postfix/templates/services/fredrick-reply.sh.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ case $RECIPIENT in
107107
at -q z -f "$ATSCRIPT" now + 1 min
108108
;;
109109
*)
110-
at -q z -f "$ATSCRIPT" now + 20 min
110+
reply_delay=$(awk 'BEGIN { srand(); print (rand() * 100) + 20 }')
111+
at -q z -f "$ATSCRIPT" now + "$reply_delay" min
111112
;;
112113
esac
113114
rm "$ATSCRIPT"

0 commit comments

Comments
 (0)