Browse Source

Restart web system only if it is nginx.

(cherry picked from commit 15da06485ca7b38ea81c64fa7fb857a1c1b461e6)
Raphael Schneeberger 6 years ago
parent
commit
44195b35f0
1 changed files with 4 additions and 2 deletions
  1. 4 2
      bin/v-add-letsencrypt-domain

+ 4 - 2
bin/v-add-letsencrypt-domain

@@ -267,8 +267,10 @@ for auth in $authz; do
             echo "$token.$THUMB" > $acme_challenge/$token
             echo "$token.$THUMB" > $acme_challenge/$token
             chown -R $user:$user $well_known
             chown -R $user:$user $well_known
         fi
         fi
-        $BIN/v-restart-web
-        check_result $? "Web restart failed" > /dev/null
+        if [ "$WEB_SYSTEM" = 'nginx' ]; then
+            $BIN/v-restart-web
+            check_result $? "Web restart failed" > /dev/null
+        fi
     fi
     fi
 
 
     # Requesting ACME validation / STEP 5
     # Requesting ACME validation / STEP 5