Browse Source

minor, hide debug info

neil 8 years ago
parent
commit
811bff6db0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      acme.sh

+ 2 - 2
acme.sh

@@ -1172,7 +1172,7 @@ _stopserver(){
 
 
   _debug2 "Le_HTTPPort" "$Le_HTTPPort"
   _debug2 "Le_HTTPPort" "$Le_HTTPPort"
   if [ "$Le_HTTPPort" ] ; then
   if [ "$Le_HTTPPort" ] ; then
-    if [ "$DEBUG" ] ; then
+    if [ "$DEBUG" ] && [ "$DEBUG" -ge "3" ] ; then
       _get "http://localhost:$Le_HTTPPort" "" 1
       _get "http://localhost:$Le_HTTPPort" "" 1
     else
     else
       _get "http://localhost:$Le_HTTPPort" "" 1 >/dev/null 2>&1
       _get "http://localhost:$Le_HTTPPort" "" 1 >/dev/null 2>&1
@@ -1181,7 +1181,7 @@ _stopserver(){
   
   
   _debug2 "Le_TLSPort" "$Le_TLSPort"
   _debug2 "Le_TLSPort" "$Le_TLSPort"
   if [ "$Le_TLSPort" ] ; then
   if [ "$Le_TLSPort" ] ; then
-    if [ "$DEBUG" ] ; then
+    if [ "$DEBUG" ] && [ "$DEBUG" -ge "3" ] ;
       _get "https://localhost:$Le_TLSPort" "" 1
       _get "https://localhost:$Le_TLSPort" "" 1
       _get "https://localhost:$Le_TLSPort" "" 1
       _get "https://localhost:$Le_TLSPort" "" 1
     else
     else