Browse Source

Merge pull request #11968 from yangfl/master

acme: fix some errors
lilik-openwrt-22.03
Toke Høiland-Jørgensen 5 years ago
committed by GitHub
parent
commit
62ef2a8839
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      net/acme/files/run.sh

+ 6
- 3
net/acme/files/run.sh View File

@ -32,17 +32,17 @@ check_cron()
log()
{
logger -t acme -s -p daemon.info "$@"
logger -t acme -s -p daemon.info -- "$@"
}
err()
{
logger -t acme -s -p daemon.err "$@"
logger -t acme -s -p daemon.err -- "$@"
}
debug()
{
[ "$DEBUG" -eq "1" ] && logger -t acme -s -p daemon.debug "$@"
[ "$DEBUG" -eq "1" ] && logger -t acme -s -p daemon.debug -- "$@"
}
get_listeners() {
@ -183,6 +183,7 @@ issue_cert()
local update_uhttpd
local update_nginx
local keylength
local keylength_ecc=0
local domains
local main_domain
local moved_staging=0
@ -215,6 +216,7 @@ issue_cert()
if echo $keylength | grep -q "^ec-"; then
domain_dir="$STATE_DIR/${main_domain}_ecc"
keylength_ecc=1
else
domain_dir="$STATE_DIR/${main_domain}"
fi
@ -234,6 +236,7 @@ issue_cert()
moved_staging=1
else
log "Found previous cert config. Issuing renew."
[ "$keylength_ecc" -eq "1" ] && acme_args="$acme_args --ecc"
run_acme --home "$STATE_DIR" --renew -d "$main_domain" $acme_args && ret=0 || ret=1
post_checks
return $ret


Loading…
Cancel
Save