Kaynağa Gözat

Make le staging condition hestia conform.

(cherry picked from commit 5d869d990ff21ef59a43c429065e8caf82556a4f)
Raphael Schneeberger 6 yıl önce
ebeveyn
işleme
708eed9e50
3 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 1 0
      CHANGELOG.md
  2. 1 1
      bin/v-add-letsencrypt-domain
  3. 1 1
      bin/v-add-letsencrypt-user

+ 1 - 0
CHANGELOG.md

@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
 ## [1.0.5] - 2019-08-06 - Hotfix
 ### Bugfixes
 - Fix several security issues, thanks to Andrea Cardaci (https://cardaci.xyz/)
+- Rework Let's Encrypt acme staging to use hestia conform standard.
 
 ## [1.0.4] - 2019-07-09 - Hotfix
 ### Bugfixes

+ 1 - 1
bin/v-add-letsencrypt-domain

@@ -23,7 +23,7 @@ source $HESTIA/conf/hestia.conf
 # LE API
 LE_API='https://acme-v02.api.letsencrypt.org'
 
-if [[ "$LE_STAGING" =~ ^(YES|TRUE)$ ]]; then
+if [[ "$LE_STAGING" = 'yes' ]]; then
     LE_API='https://acme-staging-v02.api.letsencrypt.org'
 fi
 

+ 1 - 1
bin/v-add-letsencrypt-user

@@ -19,7 +19,7 @@ source $HESTIA/conf/hestia.conf
 # LE API
 LE_API='https://acme-v02.api.letsencrypt.org'
 
-if [[ "$LE_STAGING" =~ ^(YES|TRUE)$ ]]; then
+if [[ "$LE_STAGING" = 'yes' ]]; then
     LE_API='https://acme-staging-v02.api.letsencrypt.org'
 fi