Update synology_dsm.sh
Issue for lougout
This commit is contained in:
parent
afacdfcb95
commit
f59a925897
@ -224,6 +224,7 @@ synology_dsm_deploy() {
|
|||||||
#################### Private functions below ##################################
|
#################### Private functions below ##################################
|
||||||
_logout() {
|
_logout() {
|
||||||
# Logout to not occupy a permanent session, e.g. in DSM's "Connected Users" widget
|
# Logout to not occupy a permanent session, e.g. in DSM's "Connected Users" widget
|
||||||
response=$(_get "$_base_url/webapi/entry.cgi?api=SYNO.API.Auth&version=$api_version&method=logout")
|
#Edit Darkneo - reuse previous variables to logout properly only for CERT user
|
||||||
|
response=$(_get "$_base_url/webapi/$api_path?api=SYNO.API.Auth&version=$api_version&method=logout&_sid=$sid")
|
||||||
_debug3 response "$response"
|
_debug3 response "$response"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user