[Postfix] Wait for DNS

master
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
1 changed files with 5 additions and 0 deletions

View File

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