2
0
mirror of https://github.com/acmesh-official/acme.sh synced 2025-08-31 14:25:37 +00:00

Merge pull request #4925 from LordDarkneo/patch-1

Logout update for DSM Deploy script (2727 issue)
This commit is contained in:
neil
2023-12-24 16:01:25 +01:00
committed by GitHub

View File

@@ -223,7 +223,7 @@ synology_dsm_deploy() {
#################### Private functions below ##################################
_logout() {
# 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")
# Logout CERT 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")
_debug3 response "$response"
}