aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-11-12 00:47:29 +0000
committerGravatar Joe Banks <[email protected]>2025-11-12 00:47:42 +0000
commit43ef9e264c98c094ca7002cb59ae9c8cecbd1565 (patch)
treefbca944e192770b05c735deef27034bbad087f7b
parentUse newer ModMail image & update TMPDIR paths with 4.2.0 (diff)
Cast Fredrick delay to integer to stop `at` complainingHEADmain
-rw-r--r--ansible/roles/postfix/templates/services/fredrick-reply.sh.j22
1 files changed, 1 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 90ebe04..9cc9ad3 100644
--- a/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2
+++ b/ansible/roles/postfix/templates/services/fredrick-reply.sh.j2
@@ -107,7 +107,7 @@ case $RECIPIENT in
at -q z -f "$ATSCRIPT" now + 1 min
;;
*)
- reply_delay=$(awk 'BEGIN { srand(); print (rand() * 100) + 20 }')
+ reply_delay=$(awk 'BEGIN { srand(); print int((rand() * 100) + 20) }')
at -q z -f "$ATSCRIPT" now + "$reply_delay" min
;;
esac