]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Merge pull request #4820 from acmesh-official/dev master 3.0.7
authorneil <github@neilpang.com>
Thu, 5 Oct 2023 05:25:27 +0000 (13:25 +0800)
committerGitHub <noreply@github.com>
Thu, 5 Oct 2023 05:25:27 +0000 (13:25 +0800)
sync

deploy/synology_dsm.sh

index 21c7ac9b766b134fbc3e171e09555bdb36a49f2c..10da861a3fade2b642cb477afa787faa12aef500 100644 (file)
@@ -91,7 +91,7 @@ synology_dsm_deploy() {
 
   _debug "Getting API version"
   response=$(_get "$_base_url/webapi/query.cgi?api=SYNO.API.Info&version=1&method=query&query=SYNO.API.Auth")
-  api_path=$(echo "$response" | grep "SYNO.API.Auth" | sed -n 's/.*"path" *: *"\([0-9]*\)".*/\1/p')
+  api_path=$(echo "$response" | grep "SYNO.API.Auth" | sed -n 's/.*"path" *: *"\([^"]*\)".*/\1/p')
   api_version=$(echo "$response" | grep "SYNO.API.Auth" | sed -n 's/.*"maxVersion" *: *\([0-9]*\).*/\1/p')
   _debug3 response "$response"
   _debug3 api_path "$api_path"