Browse Source

Support nginx includes ending in wildcard `*`

This fixes cases like `include sites-enabled/*;` which is, e.g., the default config in Ubuntu.
pull/3747/head
Phil Krylov 3 years ago
committed by GitHub
parent
commit
3f759069b1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      acme.sh

2
acme.sh

@ -3147,7 +3147,7 @@ _checkConf() {
_d="$1"
_c_file="$2"
_debug "Start _checkConf from:$_c_file"
if [ ! -f "$2" ] && ! echo "$2" | grep '*$' >/dev/null && echo "$2" | grep '*' >/dev/null; then
if [ ! -f "$2" ] && echo "$2" | grep '*' >/dev/null; then
_debug "wildcard"
for _w_f in $2; do
if [ -f "$_w_f" ] && _checkConf "$1" "$_w_f"; then

Loading…
Cancel
Save