Merge pull request #1756 from aendeavor/fix-build_inconsistency

FIX: build inconsistencies for razor
This commit is contained in:
Georg Lauterbach 2021-01-20 20:53:07 +01:00 committed by GitHub
commit 035c4de7fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,7 +161,10 @@ RUN \
echo "0 4 * * * /usr/local/bin/virus-wiper" | crontab - && \ echo "0 4 * * * /usr/local/bin/virus-wiper" | crontab - && \
chmod 644 /etc/amavis/conf.d/* 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 # Fail2Ban, DKIM & DMARC