aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ansible/roles/postfix/templates/services/fredrick-reply.sh.j22
-rw-r--r--kubernetes/namespaces/modmail/bot/deployment.yaml8
2 files changed, 5 insertions, 5 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
diff --git a/kubernetes/namespaces/modmail/bot/deployment.yaml b/kubernetes/namespaces/modmail/bot/deployment.yaml
index ae135e2..967217c 100644
--- a/kubernetes/namespaces/modmail/bot/deployment.yaml
+++ b/kubernetes/namespaces/modmail/bot/deployment.yaml
@@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: modmail-bot
- image: ghcr.io/python-discord/modmail:latest
+ image: ghcr.io/python-discord/modmail:master
resources:
requests:
cpu: 75m
@@ -25,13 +25,13 @@ spec:
memory: 1000Mi
imagePullPolicy: "Always"
volumeMounts:
- - mountPath: /modmailbot/plugins
+ - mountPath: /opt/modmail/plugins
name: plugins-vol
- - mountPath: /modmailbot/temp
+ - mountPath: /opt/modmail/temp
name: temp-vol
env:
- name: TMPDIR
- value: /modmailbot/temp
+ value: /opt/modmail/temp
envFrom:
- secretRef:
name: modmail