2
0
mirror of https://github.com/acmesh-official/acme.sh synced 2025-08-30 13:58:33 +00:00

Merge pull request #3498 from tresni/synology_dsm

FIX: Synology sets "default" on wrong certificate
This commit is contained in:
neil
2021-05-03 15:57:09 +08:00
committed by GitHub

View File

@@ -121,7 +121,7 @@ synology_dsm_deploy() {
# we've verified this certificate description is a thing, so save it
_savedeployconf SYNO_Certificate "$SYNO_Certificate"
default=false
default=""
if echo "$response" | sed -n "s/.*\"desc\":\"$SYNO_Certificate\",\([^{]*\).*/\1/p" | grep -- 'is_default":true' >/dev/null; then
default=true
fi