Browse Source
Update synology_dsm.sh
#2727 issue when logging out on older version - using variables to unlog only for CERT user
pull/4925/head
LordDarkneo
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
deploy/synology_dsm.sh
|
@ -223,8 +223,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 |
|
|
|
|
|
#Edit Darkneo - reuse previous variables to logout properly only for CERT user |
|
|
|
|
|
|
|
|
# Logout SERT user only to not occupy a permanent session, e.g. in DSM's "Connected Users" widget (based on previous variables) |
|
|
response=$(_get "$_base_url/webapi/$api_path?api=SYNO.API.Auth&version=$api_version&method=logout&_sid=$sid") |
|
|
response=$(_get "$_base_url/webapi/$api_path?api=SYNO.API.Auth&version=$api_version&method=logout&_sid=$sid") |
|
|
_debug3 response "$response" |
|
|
_debug3 response "$response" |
|
|
} |
|
|
} |