From 731fabef58726a9f8d6ffdb2fb81e9bbe0da1757 Mon Sep 17 00:00:00 2001 From: DerLinkman Date: Fri, 28 Jul 2023 12:13:07 +0200 Subject: [PATCH] Fixed Syntax error in generate_config.sh --- generate_config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_config.sh b/generate_config.sh index ce550e46fe..e42a68fc4c 100755 --- a/generate_config.sh +++ b/generate_config.sh @@ -59,7 +59,7 @@ else fi detect_bad_asn() { - if [[ curl -s http://fuzzy.mailcow.email/asn_list.txt | grep $(whois -h whois.radb.net $(curl -s http://ipv4.mailcow.email) | grep -i origin | tr -s " " | cut -d " " -f2 | head -1) ]]; then + if curl -s http://fuzzy.mailcow.email/asn_list.txt | grep $(whois -h whois.radb.net $(curl -s http://ipv4.mailcow.email) | grep -i origin | tr -s " " | cut -d " " -f2 | head -1) > /dev/null; then if ! $SPAMHAUS_DQS_KEY; then echo -e "\e[31mYour server's public IP uses an AS that is blocked by Spamhaus to use their DNS blocklists for Postfix." echo -e "\e[31mmailcow did not detected a value for the variable SPAMHAUS_DQS_KEY inside mailcow.conf!"