From a0056b1a88014533e8addc6021e106e2877aa1f8 Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+aendeavor@users.noreply.github.com> Date: Tue, 19 Jan 2021 15:32:16 +0100 Subject: [PATCH] should fix build inconsistencies for razor --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8fa478fa..76df131e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -161,7 +161,10 @@ RUN \ echo "0 4 * * * /usr/local/bin/virus-wiper" | crontab - && \ chmod 644 /etc/amavis/conf.d/* -RUN su - amavis -c "razor-admin -create && sleep 3 && razor-admin -register" +# overcomplication necessary for CI +RUN for _ in {1..10}; do su - amavis -c "razor-admin -create" ; sleep 3 ; \ + if su - amavis -c "razor-admin -register" &>/dev/null; then { EC=0 ; break ; } ; \ + else EC=${?} ; fi ; done ; (exit ${EC}) # ––––––––––––––––––––––––––––––––––––––––––––––– # ––– Fail2Ban, DKIM & DMARC ––––––––––––––––––––