mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-09 15:42:43 +00:00
FIX: Synology sets "default" on wrong certificate
For some DSM installs, it appears that setting the "default" flag to the string "false" actually sets it to true. This causes Synology to set the last updated certificate to be the default certificate. Using an empty string appears to still be accepted as a false-y value for DSMs where this isn't happening and corrects the behavior in the cases that it was. Credit to @Run-King for identifying the fix and @buxm for reporting.
This commit is contained in:
parent
dc1526130f
commit
12558414d4
@ -121,7 +121,7 @@ synology_dsm_deploy() {
|
|||||||
# we've verified this certificate description is a thing, so save it
|
# we've verified this certificate description is a thing, so save it
|
||||||
_savedeployconf SYNO_Certificate "$SYNO_Certificate"
|
_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
|
if echo "$response" | sed -n "s/.*\"desc\":\"$SYNO_Certificate\",\([^{]*\).*/\1/p" | grep -- 'is_default":true' >/dev/null; then
|
||||||
default=true
|
default=true
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user