File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ function update_cert {
155155
156156 local -n cert_keysize=" LETSENCRYPT_${cid} _KEYSIZE"
157157 if [[ -z " $cert_keysize " ]] || \
158- [[ ! " $cert_keysize " =~ ^(2048| 3072| 4096| ec-256| ec-384)$ ]]; then
158+ [[ ! " $cert_keysize " =~ ^(' 2048' | ' 3072' | ' 4096' | ' ec-256' | ' ec-384' )$ ]]; then
159159 cert_keysize=$DEFAULT_KEY_SIZE
160160 fi
161161 params_issue_arr+=(--keylength " $cert_keysize " )
@@ -381,7 +381,8 @@ function update_cert {
381381 local file_path=" ${certificate_dir} /${file} "
382382 [[ -e " $file_path " ]] && set_ownership_and_permissions " $file_path "
383383 done
384- local acme_private_key=" $( find /etc/acme.sh -name " *.key" -path " *${hosts_array[0]} *" ) "
384+ local acme_private_key
385+ acme_private_key=" $( find /etc/acme.sh -name " *.key" -path " *${hosts_array[0]} *" ) "
385386 [[ -e " $acme_private_key " ]] && set_ownership_and_permissions " $acme_private_key "
386387 # Queue nginx reload if a certificate was issued or renewed
387388 [[ $acmesh_return -eq 0 ]] \
You can’t perform that action at this time.
0 commit comments