mirror of
				https://github.com/acmesh-official/acme.sh
				synced 2025-11-04 13:55:56 +08:00 
			
		
		
		
	fix: Synology DSM API path regex
Fix the regex for looking up the API path value from the Synology API query.
This commit is contained in:
		@@ -91,7 +91,7 @@ synology_dsm_deploy() {
 | 
			
		||||
 | 
			
		||||
  _debug "Getting API version"
 | 
			
		||||
  response=$(_get "$_base_url/webapi/query.cgi?api=SYNO.API.Info&version=1&method=query&query=SYNO.API.Auth")
 | 
			
		||||
  api_path=$(echo "$response" | grep "SYNO.API.Auth" | sed -n 's/.*"path" *: *"\([0-9]*\)".*/\1/p')
 | 
			
		||||
  api_path=$(echo "$response" | grep "SYNO.API.Auth" | sed -n 's/.*"path" *: *"\([^"]*\)".*/\1/p')
 | 
			
		||||
  api_version=$(echo "$response" | grep "SYNO.API.Auth" | sed -n 's/.*"maxVersion" *: *\([0-9]*\).*/\1/p')
 | 
			
		||||
  _debug3 response "$response"
 | 
			
		||||
  _debug3 api_path "$api_path"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user