]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
fix(deploy-synology_dsm): support DID with DSM 7
authorMarkus Lippert <markuslippert@outlook.com>
Thu, 29 Sep 2022 10:22:45 +0000 (12:22 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Sep 2022 10:22:45 +0000 (12:22 +0200)
deploy/synology_dsm.sh

index f30f82c0ffd2238ab02e92731efa91fa7c65e8fb..c31a5df0094b601a8167693b02473cffa07f5fc7 100644 (file)
@@ -108,7 +108,7 @@ synology_dsm_deploy() {
     _debug3 H1 "${_H1}"
   fi
 
-  response=$(_post "method=login&account=$encoded_username&passwd=$encoded_password&api=SYNO.API.Auth&version=$api_version&enable_syno_token=yes&otp_code=$otp_code" "$_base_url/webapi/auth.cgi?enable_syno_token=yes")
+  response=$(_post "method=login&account=$encoded_username&passwd=$encoded_password&api=SYNO.API.Auth&version=$api_version&enable_syno_token=yes&otp_code=$otp_code&device_name=certrenewal&device_id=$SYNO_DID" "$_base_url/webapi/auth.cgi?enable_syno_token=yes")
   token=$(echo "$response" | grep "synotoken" | sed -n 's/.*"synotoken" *: *"\([^"]*\).*/\1/p')
   _debug3 response "$response"
   _debug token "$token"