Browse Source
fix(deploy-synology_dsm): support DID with DSM 7
pull/4329/head
Markus Lippert
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
deploy/synology_dsm.sh
|
@ -108,7 +108,7 @@ synology_dsm_deploy() { |
|
|
_debug3 H1 "${_H1}" |
|
|
_debug3 H1 "${_H1}" |
|
|
fi |
|
|
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') |
|
|
token=$(echo "$response" | grep "synotoken" | sed -n 's/.*"synotoken" *: *"\([^"]*\).*/\1/p') |
|
|
_debug3 response "$response" |
|
|
_debug3 response "$response" |
|
|
_debug token "$token" |
|
|
_debug token "$token" |
|
|