From f953eb623a806b9145b88ad5a0d45ee9994236fb Mon Sep 17 00:00:00 2001 From: Pablo Ganuza Vidal Date: Mon, 19 Aug 2024 00:39:29 +0200 Subject: [PATCH] Fix verification of ports (#818) nc needs -p to publish verification code correctly, at least in Debian 12 --- discourse-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discourse-setup b/discourse-setup index 0629490..60e566e 100755 --- a/discourse-setup +++ b/discourse-setup @@ -60,7 +60,7 @@ connect_to_port () { esac done else - echo -e "HTTP/1.1 200 OK\n\n $VERIFY" | nc -w 4 -l $PORT >/dev/null 2>&1 & + echo -e "HTTP/1.1 200 OK\n\n $VERIFY" | nc -w 4 -l -p $PORT >/dev/null 2>&1 & if curl --proto =http -s $HOST:$PORT --connect-timeout 3 | grep $VERIFY >/dev/null 2>&1; then return 0 else -- 2.25.1