We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8999f8 commit 94e6160Copy full SHA for 94e6160
letsencrypt-auto
@@ -19,7 +19,13 @@ else
19
SUDO=
20
fi
21
22
-for arg in "$@" ; do
+if timeout 1 sh -c 'cat < /dev/null > /dev/tcp/127.0.0.1/80' >/dev/null 2>&1 ; then
23
+ echo "Looks like port 80 is already taken. This might interfere with letsencrypt's setup"
24
+ echo "Please stop any servers that you might be running on port 80 before resuming this setup"
25
+ exit
26
+fi
27
+
28
+for arg in "$@" ; do
29
# This first clause is redundant with the third, but hedging on portability
30
if [ "$arg" = "-v" ] || [ "$arg" = "--verbose" ] || echo "$arg" | grep -E -- "-v+$" ; then
31
VERBOSE=1
0 commit comments