Commit 90d69600 authored by Vitaly Lipatov's avatar Vitaly Lipatov

nginx-le.sh: skip commented server_name

parent 59b80cf6
......@@ -25,7 +25,7 @@ fi
[ -r "$NCONF" ] || fatal "Can't find $NCONF"
DOMAINARG=""
for i in $(grep server_name $NCONF | sed -e "s|;||") ; do
for i in $(grep server_name $NCONF | grep -v "^ *#" | sed -e "s|;||") ; do
echo "$i" | grep -q "server_name" && continue
echo "$i" | grep -q "$INTHOST" && continue
[ -n "$DOMAIN" ] || DOMAIN="$i"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment