[Postfix] Wait for DNS

This commit is contained in:
andryyy 2019-11-26 21:09:12 +01:00
parent 8badb146e9
commit c75fd9ac40
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -10,6 +10,11 @@ while ! mysqladmin status --socket=/var/run/mysqld/mysqld.sock -u${DBUSER} -p${D
sleep 2
done
while ! dig dns9.quad9.net @unbound +short >/dev/null; do
echo "Waiting for DNS..."
sleep 2
done
cat <<EOF > /etc/aliases
# Autogenerated by mailcow
null: /dev/null